:root {
    --color-primary: #10b981;
    --color-primary-light: #34d399;
    --color-primary-dark: #059669;
    --color-secondary: #f2c703;
    --color-danger: #ef4444;
    --color-danger-dark: #dc2626;
    --color-muted: #353535;
    --color-muted-light: #454545;
    --color-muted-dark: #2a2a2a;
    --text-main: #d1d5db;
    --text-light: #e5e7eb;
    --text-muted: #9ca3af;
    --text-dim: #6b7280
}

html {
    overflow: hidden;
    box-sizing: border-box
}

*,
*:before,
*:after {
    box-sizing: inherit;
    scrollbar-width: thin;
    scrollbar-color: #383838 transparent
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px
}

::-webkit-scrollbar-track {
    background: transparent
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px
}

::-webkit-scrollbar-thumb:hover {
    background: #4a4a4a
}

::-webkit-scrollbar-corner {
    background: transparent
}

body {
    margin: 0;
    overflow: hidden;
    font-family: Inter, Segoe UI, Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a1a1a;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    -webkit-user-select: none;
    user-select: none
}

body.mobile-fullscreen-safe-area {
    background-color: #000;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-left: env(safe-area-inset-left, 0px)
}

input[type=checkbox] {
    accent-color: var(--color-secondary)
}

input[type=text]:focus,
input[type=text]:focus-visible {
    outline: none;
    box-shadow: none
}

.font-mono {
    font-family: JetBrains Mono, monospace
}

.text-xxs {
    font-size: 10px
}

.text-red {
    color: var(--color-danger)
}

.text-primary-light {
    color: var(--color-primary-light)
}

.text-primary {
    color: var(--color-primary)
}

.text-green {
    color: #22c55e
}

.text-blue {
    color: #3b82f6
}

.text-orange {
    color: #fb923c
}

.text-secondary {
    color: var(--color-secondary)
}

.bg-red {
    background-color: var(--color-danger)
}

.bg-primary {
    background-color: var(--color-primary)
}

.bg-secondary {
    background-color: var(--color-secondary)
}

.bg-green {
    background-color: #22c55e
}

.bg-blue {
    background-color: #3b82f6
}

.bg-cyan {
    background-color: #06b6d4
}

#main-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    z-index: 99999;
    opacity: 0;
    transition: opacity .3s ease;
    overflow-y: scroll;
    scrollbar-gutter: stable;
    overflow-x: hidden;
    padding: 20px 24px;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #383838 transparent
}

#main-menu::-webkit-scrollbar {
    width: 6px
}

#main-menu::-webkit-scrollbar-track {
    background: transparent
}

#main-menu::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px
}

#main-menu::-webkit-scrollbar-thumb:hover {
    background: #4a4a4a
}

#main-menu.active {
    display: flex;
    opacity: 1
}

.main-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 780px;
    text-align: center;
    margin: 0 auto;
    padding: 30px 0 50px;
    position: relative;
    box-sizing: border-box
}

.main-menu-close-btn {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #2a2a2a;
    color: #e5e7eb;
    border: 1px solid #3f3f3f;
    border-radius: 6px;
    cursor: pointer;
    font-size: .75rem;
    font-weight: 600
}

.main-menu-content h2 {
    margin: 0;
    color: #e5e7eb;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    border-bottom: none
}

.main-menu-templates-wrap {
    position: relative;
    width: 100%;
    max-width: 780px;
    margin: 0 0 10px;
    transition: height .3s ease
}

.main-menu-templates {
    position: relative;
    width: 100%;
    -webkit-user-select: none;
    user-select: none
}

.main-menu-card {
    background: #222;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    overflow: hidden;
    box-sizing: border-box
}

.main-menu-card-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: #111
}

.main-menu-card-body {
    padding: 8px 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    justify-content: space-between
}

.main-menu-card h3 {
    margin: 0;
    color: var(--color-primary-light);
    font-size: .8rem;
    font-weight: 600;
    border: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
    position: relative
}

.main-menu-card-title-text {
    display: inline;
    white-space: nowrap
}

.main-menu-card:hover h3.is-marquee-active {
    text-overflow: clip
}

.main-menu-card:hover h3.is-marquee-active .main-menu-card-title-text {
    display: inline-block;
    will-change: transform;
    animation: marqueeScroll var(--marquee-duration, 3s) cubic-bezier(.45, .05, .55, .95) infinite alternate
}

@keyframes marqueeScroll {

    0%,
    20% {
        transform: translate(0)
    }

    80%,
    to {
        transform: translate(var(--marquee-dist, -50px))
    }
}

.main-menu-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: .7rem;
    line-height: 1.35;
    height: 2.7em;
    min-height: 2.7em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    border: none
}

.main-menu-card-time-ago {
    opacity: .75
}

.main-menu-card-open {
    margin-top: 2px;
    padding: 6px 12px;
    height: 31px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: .75rem;
    font-weight: 700;
    width: 100%;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    box-sizing: border-box
}

.main-menu-card-open svg,
.main-menu-card-open i {
    width: 13px;
    height: 13px;
    flex-shrink: 0
}

.main-menu-card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin-top: 2px
}

.main-menu-card-actions .main-menu-card-open {
    flex: 1;
    margin-top: 0;
    min-width: 0
}

.main-menu-card-delete {
    height: 31px;
    width: 31px;
    min-width: 31px;
    aspect-ratio: 1;
    background: var(--color-danger);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    transition: background .15s ease;
    box-sizing: border-box
}

.main-menu-card-delete:hover {
    background: var(--color-danger-dark)
}

.main-menu-card-delete svg,
.main-menu-card-delete i {
    width: 14px;
    height: 14px;
    flex-shrink: 0
}

.main-menu-loader {
    width: 90%;
    max-width: 480px;
    flex-shrink: 0;
    text-align: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100
}

.main-menu-loader-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px
}

.main-menu-loader-title {
    font-size: .75rem;
    font-weight: 600;
    color: #e5e7eb
}

.main-menu-loader-percent {
    font-size: .75rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums
}

.main-menu-loader-track {
    width: 100%;
    height: 4px;
    background: #2f2f2f;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 5px
}

.main-menu-loader-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: 2px;
    transition: width .25s ease
}

.main-menu-loader-message {
    font-size: .72rem;
    color: var(--text-muted);
    line-height: 1.4
}

.main-menu-expand-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 6px auto 0;
    padding: 6px 14px;
    background: transparent;
    border: 1px solid #2a2a2a;
    border-radius: 20px;
    color: var(--text-muted);
    font-size: .74rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease
}

.main-menu-expand-toggle:hover {
    background: #242424;
    border-color: #3d3d3d;
    color: #f3f4f6
}

.main-menu-expand-toggle .expand-chevron {
    transition: transform .25s ease
}

.main-menu-expand-toggle.is-expanded {
    background: #202020;
    border-color: #383838;
    color: var(--color-primary-light)
}

.main-menu-expand-toggle.is-expanded .expand-chevron {
    transform: rotate(180deg)
}

.online-projects-section {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid #282828
}

.online-projects-section.is-open {
    display: flex;
    min-height: 100vh;
    padding-bottom: 80px
}

.online-projects-section.is-open .online-projects-grid,
.online-projects-section.is-open .online-projects-empty,
.online-projects-section.is-open .online-projects-loading,
.online-projects-section.is-open .online-projects-toolbar,
.online-projects-section.is-open .online-projects-tags-bar {
    animation: onlineCardsFadeIn .4s ease forwards
}

.online-projects-section.is-closing .online-projects-grid,
.online-projects-section.is-closing .online-projects-empty,
.online-projects-section.is-closing .online-projects-loading,
.online-projects-section.is-closing .online-projects-toolbar,
.online-projects-section.is-closing .online-projects-tags-bar {
    animation: onlineCardsFadeOut .35s ease forwards
}

@keyframes onlineCardsFadeIn {
    0% {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes onlineCardsFadeOut {
    0% {
        opacity: 1
    }

    to {
        opacity: 0
    }
}

.online-projects-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    flex-wrap: wrap;
    position: relative;
    z-index: 20;
    overflow: visible
}

.mc-sort-dropdown-container {
    position: relative;
    z-index: 30
}

.online-projects-search-wrap {
    position: relative;
    flex: 1;
    min-width: 180px;
    display: flex;
    align-items: center;
    background: #111;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    padding: 0 8px;
    box-sizing: border-box
}

.online-projects-search-icon {
    width: 13px;
    height: 13px;
    color: var(--text-dim);
    pointer-events: none;
    flex-shrink: 0
}

.online-projects-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: #e5e7eb;
    font-size: 12px;
    min-height: 34px;
    padding: 4px 6px
}

.online-projects-search-clear {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center
}

.online-projects-search-clear:hover {
    color: #fff
}

.online-projects-filters-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0
}

.online-projects-filters-row .mc-view-toggle-btn {
    width: 34px;
    height: 34px;
    min-width: 34px
}

.online-projects-filters-row .mc-view-toggle-btn i.rotating {
    animation: spin .8s linear infinite
}

.online-projects-tags-bar {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent
}

.online-projects-tags-bar::-webkit-scrollbar {
    height: 4px
}

.online-projects-tags-bar::-webkit-scrollbar-track {
    background: transparent
}

.online-projects-tags-bar::-webkit-scrollbar-thumb {
    background: #2f2f2f;
    border-radius: 2px
}

.online-projects-tags-bar::-webkit-scrollbar-thumb:hover {
    background: #444
}

.online-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    background: #1a1a1a;
    border: 1px solid #2c2c2c;
    border-radius: 16px;
    color: var(--text-muted);
    font-size: .7rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all .15s ease
}

.online-tag-chip:hover {
    background: #252525;
    border-color: #3d3d3d;
    color: #e5e7eb
}

.online-tag-chip.active {
    background: var(--color-primary-dark);
    border-color: var(--color-primary);
    color: #fff
}

.online-tag-chip.tag-special-unggulan.active {
    background: #78350f;
    border-color: #d97706;
    color: #fef3c7
}

.online-tag-chip.tag-special-collab.active {
    background: #134e4a;
    border-color: #0d9488;
    color: #ccfbf1
}

.online-tag-count {
    font-size: .6rem;
    padding: 1px 4px;
    border-radius: 6px;
    background: #ffffff1a;
    color: inherit
}

.online-projects-container {
    width: 100%;
    min-height: 120px
}

.online-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%
}

.online-project-card {
    background: #222;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: 0 4px 14px #00000059
}

.online-project-author {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-dim);
    font-size: .66rem;
    line-height: 1.2
}

.online-project-author strong {
    color: #d1d5db;
    font-weight: 600
}

.online-project-desc {
    margin: 0;
    color: var(--text-muted);
    font-size: .7rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 26px
}

.online-project-tags-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 1px;
    margin-bottom: 2px
}

.project-tag-pill {
    font-size: .62rem;
    padding: 1px 6px;
    border-radius: 12px;
    background: #2a2a2a;
    border: 1px solid #383838;
    color: #9ca3af;
    cursor: pointer;
    font-weight: 500;
    transition: background-color .15s ease
}

.project-tag-pill:hover {
    background: #383838;
    color: #fff
}

.project-tag-pill.tag-pill-unggulan {
    background: #78350f;
    border-color: #d97706;
    color: #fef3c7;
    font-weight: 600
}

.project-tag-pill.tag-pill-collab {
    background: #134e4a;
    border-color: #0d9488;
    color: #ccfbf1;
    font-weight: 600
}

.online-btn-spinner {
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, .3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .8s linear infinite;
    display: inline-block;
    flex-shrink: 0
}

.online-offline-banner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #ef44441a;
    border: 1px solid rgba(239, 68, 68, .25);
    border-radius: 6px;
    color: #fca5a5;
    font-size: .72rem;
    font-weight: 500;
    margin-bottom: 8px;
    width: fit-content
}

.online-projects-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px 20px;
    color: var(--text-muted)
}

.online-projects-spinner {
    width: 26px;
    height: 26px;
    border: 2px solid rgba(16, 185, 129, .2);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin .8s linear infinite
}

.online-projects-loading-text {
    font-size: .74rem;
    font-weight: 500
}

.online-projects-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 26px 20px;
    text-align: center
}

.online-empty-icon {
    width: 30px;
    height: 30px;
    color: var(--text-muted);
    opacity: .6
}

.online-empty-title {
    color: #e5e7eb;
    font-size: .82rem;
    font-weight: 700
}

.online-empty-desc {
    margin: 0;
    color: var(--text-muted);
    font-size: .72rem;
    max-width: 320px
}

.online-empty-btn {
    margin-top: 4px;
    padding: 4px 12px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 4px;
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    cursor: pointer
}

.online-empty-btn:hover {
    background: #333
}

#main-menu.active {
    top: 0;
    height: 100%
}

#main-menu.active.is-docked:not(.is-loading) {
    top: var(--main-menu-top, 48px);
    height: calc(100% - var(--main-menu-top, 48px))
}

#top-toolbar.is-main-menu-open {
    position: relative;
    z-index: 100000;
    justify-content: center
}

#top-toolbar.is-main-menu-open>.toolbar-section,
#top-toolbar.is-main-menu-open>.toolbar-divider {
    display: none
}

#top-toolbar .toolbar-settings-duplicate {
    display: none
}

#top-toolbar.is-main-menu-open>.toolbar-settings-duplicate {
    display: inline-flex;
    position: absolute;
    right: calc(var(--toolbar-pad-x, 15px) + var(--toolbar-settings-gap, 8px));
    top: 50%;
    transform: translateY(-50%);
    margin: 0
}

#settings-popup {
    z-index: 100001
}

#top-toolbar .app-version {
    white-space: nowrap
}

#top-toolbar.play-enter>.toolbar-section,
#top-toolbar.play-enter>.toolbar-divider {
    animation: toolbarItemIn .55s cubic-bezier(.22, 1, .36, 1) both;
    animation-delay: var(--enter-delay, 0ms)
}

@keyframes toolbarItemIn {
    0% {
        opacity: 0;
        transform: translateY(-6px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@media(prefers-reduced-motion:reduce) {

    #top-toolbar.play-enter>.toolbar-section,
    #top-toolbar.play-enter>.toolbar-divider {
        animation: none
    }
}

.main-menu-tab-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%
}

.main-menu-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 14px;
    background: transparent;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    color: var(--text-muted);
    font-size: .74rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .15s ease, color .15s ease, border-color .15s ease
}

.main-menu-tab-btn:hover {
    background: #333;
    color: #fff
}

.main-menu-tab-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff
}

.main-menu-tab-panel {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px
}

#main-menu.is-loading .main-menu-tab-panel,
#main-menu.is-loading .main-menu-tab-bar {
    display: none
}

.main-menu-grid-wrap,
.main-menu-templates-wrap {
    width: 100%;
    max-width: 100%
}

.main-menu-drop-load {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: calc((100% - 24px) / 3);
    min-height: 31px;
    margin-top: 12px;
    margin-left: auto;
    margin-right: auto;
    padding: 6px 12px;
    background: var(--color-primary);
    border: none;
    border-radius: 4px;
    outline: 2px dashed transparent;
    color: #fff;
    cursor: pointer;
    transition: background-color .25s ease, outline-color .25s ease, border-radius .25s ease, color .2s ease, min-height .28s ease, padding .28s ease, gap .25s ease, width .28s ease;
    box-sizing: border-box
}

.main-menu-drop-load:hover {
    background: var(--color-primary-dark)
}

.main-menu-drop-load svg,
.main-menu-drop-load i {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    transition: width .25s ease, height .25s ease
}

.main-menu-drop-load-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    text-align: center
}

.main-menu-drop-load-title {
    font-size: .75rem;
    font-weight: 700
}

.main-menu-drop-load-sub {
    display: none;
    font-size: .68rem;
    font-weight: 500;
    color: var(--color-primary-light)
}

.main-menu-drop-load.drag-over {
    width: 100%;
    min-height: 78px;
    padding: 12px 16px;
    background: #10b98147;
    outline-color: var(--color-primary-light);
    border-radius: 8px;
    color: var(--color-primary-light)
}

.main-menu-drop-load.drag-over svg,
.main-menu-drop-load.drag-over i {
    width: 22px;
    height: 22px
}

.main-menu-drop-load.drag-over .main-menu-drop-load-text {
    align-items: flex-start;
    gap: 2px;
    text-align: left
}

.main-menu-drop-load.drag-over .main-menu-drop-load-sub {
    display: block;
    animation: dropSubIn .25s ease both
}

@keyframes dropSubIn {
    0% {
        opacity: 0;
        transform: translateY(-4px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@media(prefers-reduced-motion:reduce) {

    .main-menu-drop-load,
    .main-menu-drop-load svg,
    .main-menu-drop-load i,
    .main-menu-drop-load-sub {
        transition: none
    }

    .main-menu-drop-load.drag-over .main-menu-drop-load-sub {
        animation: none
    }
}

.main-menu-grid,
.main-menu-templates.main-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 6px;
    scrollbar-width: thin
}

.main-menu-grid .main-menu-card {
    position: static;
    top: auto;
    left: auto;
    margin: 0;
    width: 100%;
    transform: none;
    box-shadow: 0 4px 14px #00000059
}

.main-menu-content {
    max-width: 900px
}

#main-menu-online-section.is-tabbed {
    display: flex;
    border-top: none;
    margin-top: 0;
    padding-top: 0;
    min-height: auto;
    padding-bottom: 0
}

#main-menu-panel-online:not([style*="display: none"]) #main-menu-online-section,
.main-menu-tab-panel[data-panel=online]:not([style*="display: none"]) #main-menu-online-section {
    display: flex
}

@media(max-width:840px), (max-height:480px)and (orientation:landscape) {
    .main-menu-content {
        padding: 10px 0 32px;
        gap: 8px
    }

    .main-menu-tab-btn span {
        font-size: .7rem
    }

    .main-menu-drop-load {
        margin-top: 8px
    }
}

@media(max-height:480px)and (orientation:landscape) {

    .main-menu-grid,
    .main-menu-templates.main-menu-grid {
        grid-template-columns: repeat(3, 1fr)
    }
}

@media(max-width:840px)and (orientation:portrait) {

    .online-projects-grid,
    .main-menu-grid,
    .main-menu-templates.main-menu-grid {
        grid-template-columns: 1fr
    }

    .main-menu-drop-load {
        width: 100%
    }

    .main-menu-tab-btn {
        padding: 0 10px
    }

    .main-menu-tab-btn span {
        font-size: .68rem
    }
}

@media(max-height:480px) {
    #main-menu {
        padding: 10px 16px
    }

    .main-menu-content {
        gap: 6px
    }

    .main-menu-card-body {
        padding: 5px 8px 7px;
        gap: 3px
    }

    .main-menu-loader-header,
    .main-menu-loader-track {
        margin-bottom: 3px
    }
}

#btn-install-pwa:hover:not(:disabled) {
    background: #0d9488
}

.orientation-hint {
    margin-top: 20px;
    padding: 12px;
    background: #ffc1071a;
    border: 1px solid rgba(255, 193, 7, .3);
    border-radius: 8px;
    color: #ffc107;
    font-size: .85rem
}

.orientation-hint strong {
    display: block;
    margin-bottom: 4px
}

#mobile-resume-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000d9;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99998;
    opacity: 0;
    transition: opacity .3s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent
}

#mobile-resume-overlay.active {
    display: flex;
    opacity: 1
}

.resume-content {
    text-align: center;
    padding: 32px 28px;
    max-width: 340px
}

.resume-content h3 {
    margin: 0;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: .5px;
    animation: resume-hint-blink 2s ease-in-out infinite
}

@keyframes resume-hint-blink {

    0%,
    to {
        opacity: .5
    }

    50% {
        opacity: 1
    }
}

#main-container {
    display: flex;
    flex-direction: row;
    flex: 1;
    overflow: hidden;
    min-height: 0
}

#top-toolbar {
    --toolbar-pad-x: 15px;
    --toolbar-settings-gap: 8px;
    background: #2a2a2a;
    border-bottom: 2px solid #444;
    padding: 8px var(--toolbar-pad-x);
    display: flex;
    gap: 6px;
    align-items: center;
    box-shadow: 0 2px 5px #0000004d;
    z-index: 100;
    flex-wrap: wrap;
    flex-shrink: 0;
    min-height: 46px;
    box-sizing: border-box
}

body.app-boot-loading #top-toolbar {
    visibility: hidden
}

body.app-boot-loading #toast-container,
#wco-titlebar {
    display: none
}

@media(display-mode:window-controls-overlay) {
    #wco-titlebar {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 0 0 auto;
        height: env(titlebar-area-height, 33px);
        background: #1a1a1a;
        -webkit-app-region: drag;
        -webkit-user-select: none;
        user-select: none;
        box-sizing: border-box;
        padding-left: max(8px, env(titlebar-area-x, 8px));
        padding-right: max(8px, calc(100vw - env(titlebar-area-x, 0px) - env(titlebar-area-width, 100vw)));
        position: relative;
        z-index: 1000000
    }

    #wco-titlebar.wco-mac {
        justify-content: center;
        padding-left: 0;
        padding-right: 0
    }

    #wco-titlebar img {
        width: 16px;
        height: 16px;
        pointer-events: none
    }

    #wco-titlebar span {
        font-size: 12px;
        font-weight: 400;
        color: #fff;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        pointer-events: none
    }

    body #toast-container {
        top: calc(env(titlebar-area-height, 33px) + 12px)
    }

    #main-menu,
    .mc-modal-shell,
    .confirm-popup-overlay,
    .schematic-overlay,
    .project-overlay,
    #mobile-resume-overlay,
    #drop-zone,
    .export-progress-popup,
    #app-info-popup,
    #import-confirm-popup,
    #project-missing-popup,
    #prefs-reset-confirm-popup {
        top: env(titlebar-area-height, 33px) !important
    }

    #main-menu,
    .confirm-popup-overlay,
    .schematic-overlay,
    .project-overlay,
    #mobile-resume-overlay,
    #drop-zone,
    #app-info-popup,
    #import-confirm-popup,
    #project-missing-popup,
    #prefs-reset-confirm-popup {
        height: calc(100% - env(titlebar-area-height, 33px)) !important;
        max-height: calc(100% - env(titlebar-area-height, 33px)) !important
    }

    .export-progress-popup {
        height: calc(100dvh - env(titlebar-area-height, 33px)) !important;
        max-height: calc(100dvh - env(titlebar-area-height, 33px)) !important
    }

    #main-menu.active.is-docked:not(.is-loading) {
        top: calc(env(titlebar-area-height, 33px) + var(--main-menu-top, 48px)) !important;
        height: calc(100% - env(titlebar-area-height, 33px) - var(--main-menu-top, 48px)) !important;
        max-height: calc(100% - env(titlebar-area-height, 33px) - var(--main-menu-top, 48px)) !important
    }
}

#top-toolbar h3 {
    margin: 0 4px 0 0;
    color: var(--color-primary-light);
    font-size: 1rem;
    border: none;
    padding: 0
}

.top-home-icon-btn {
    margin: 0 8px 0 0;
    padding: 0;
    background: transparent;
    border: none;
    color: var(--color-primary-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer
}

.toolbar-section {
    display: flex;
    gap: 6px;
    align-items: center
}

.toolbar-divider {
    width: 1px;
    height: 16px;
    background: #ffffff1a;
    margin: 0;
    flex-shrink: 0
}

#sidebar-tabs {
    display: flex;
    flex-shrink: 0;
    background: #2a2a2a;
    width: 100%
}

.sidebar-tab {
    background: #2a2a2a;
    border: none;
    border-left: 1px solid #555;
    border-bottom: 1px solid #555;
    border-radius: 0;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all .2s;
    padding: 8px 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
    flex: 1;
    text-align: center
}

.sidebar-tab:first-child {
    border-left: none
}

.sidebar-tab:hover {
    background: #333;
    color: var(--text-light)
}

.sidebar-tab.active {
    background: var(--color-primary);
    color: #fff;
    border-bottom: 1px solid transparent
}

.toolbar-label {
    font-size: .75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-right: 5px
}

.toolbar-btn {
    background: var(--color-primary);
    color: #fff;
    border: 1px solid transparent;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: .85rem;
    font-weight: 700;
    box-shadow: none;
    display: flex;
    align-items: center;
    gap: 5px
}

.toolbar-btn:hover {
    background: var(--color-primary-dark);
    transform: none;
    box-shadow: none
}

.toolbar-btn:active {
    transform: none;
    box-shadow: none
}

.toolbar-btn.light {
    background: linear-gradient(to bottom, #ffa726, #f57c00)
}

.toolbar-btn.light:hover {
    background: linear-gradient(to bottom, #fb8c00, #e65100)
}

.toolbar-btn.shape {
    background: linear-gradient(to bottom, #42a5f5, #1976d2)
}

.toolbar-btn.shape:hover {
    background: linear-gradient(to bottom, #1e88e5, #1565c0)
}

.toolbar-btn.hq {
    background: var(--color-primary);
    border-color: transparent;
    color: #fff
}

.toolbar-btn.lq {
    background: #2f2f2f;
    border-color: #474747;
    color: #e5e7eb
}

.toolbar-btn.lq:hover {
    background: #3a3a3a;
    border-color: #5a5a5a;
    color: #e5e7eb
}

#btn-toggle-secondary-quality.btn-on,
#btn-toggle-camera-effect.btn-on,
#btn-toggle-grid-overlay.btn-on,
#btn-toggle-secondary-walk-mode.btn-on {
    background: var(--color-primary);
    border-color: transparent;
    color: #fff
}

#btn-toggle-secondary-quality.btn-off,
#btn-toggle-camera-effect.btn-off,
#btn-toggle-grid-overlay.btn-off,
#btn-toggle-secondary-walk-mode.btn-off {
    background: #2f2f2f;
    border-color: #474747;
    color: #e5e7eb
}

.toolbar-btn.btn-danger {
    background: var(--color-danger)
}

.toolbar-btn.btn-danger:hover {
    background: var(--color-danger-dark)
}

.history-step-btn {
    width: 100%;
    text-align: left;
    border-radius: 2px;
    padding: 4px 6px;
    font-size: 10px;
    cursor: pointer;
    border: 1px solid #3c3c3c;
    background: #2a2a2a;
    color: #d8d8d8;
    margin-bottom: 2px
}

.history-step-btn.is-head {
    background: var(--color-primary-light, #34d399);
    border: 1px solid var(--color-primary, #10b981);
    color: #101010
}

.history-step-btn.is-future {
    background: #1b1b1b;
    color: #6f6f6f
}

.toolbar-btn.character {
    background: linear-gradient(to bottom, #ab47bc, #7b1fa2)
}

.toolbar-btn.character:hover {
    background: linear-gradient(to bottom, #8e24aa, #6a1b9a)
}

.toolbar-dropdown {
    background: #222;
    border: 1px solid #555;
    color: #eee;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: .85rem;
    font-weight: 700;
    min-width: 180px;
    transition: all .2s
}

.toolbar-dropdown:hover {
    background: #2a2a2a;
    border-color: var(--color-primary)
}

.toolbar-dropdown:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: none
}

.toolbar-btn small {
    font-size: .7rem;
    opacity: .9
}

#canvas-container {
    flex: 1;
    background: linear-gradient(to bottom, #87ceeb, #e0f6ff);
    position: relative;
    outline: none;
    overflow: hidden;
    min-width: 0
}

.viewport-toolbar-left {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 6px;
    background: #2a2a2a;
    border-radius: 6px;
    border: 1px solid #444;
    box-shadow: 0 4px 12px #00000080
}

@media(max-width:768px) {
    .viewport-toolbar-left {
        top: 12px;
        left: 12px;
        gap: 6px;
        padding: 5px
    }
}

#sidebar {
    width: 360px;
    min-width: 360px;
    max-width: 360px;
    background-color: #1e1e1e;
    border-left: 1px solid #333;
    display: flex;
    flex-direction: column;
    z-index: 300;
    overflow: hidden;
    box-sizing: border-box
}

#sidebar-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0
}

#sidebar-content::-webkit-scrollbar {
    width: 10px
}

#sidebar-content::-webkit-scrollbar-track {
    background: #1a1a1a
}

#sidebar-content::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 5px
}

#sidebar-content::-webkit-scrollbar-thumb:hover {
    background: #555
}

@media(max-width:768px) {
    #sidebar-content::-webkit-scrollbar {
        width: 20px
    }

    #sidebar-content::-webkit-scrollbar-thumb {
        border-radius: 7px
    }
}

.mc-modal-shell *::-webkit-scrollbar {
    width: 8px;
    height: 8px
}

.mc-modal-shell *::-webkit-scrollbar-track {
    background: #1a1a1a
}

.mc-modal-shell *::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px
}

.mc-modal-shell *::-webkit-scrollbar-thumb:hover {
    background: #555
}

.sidebar-section {
    border-bottom: 1px solid #333
}

.sidebar-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #2a2a2a;
    cursor: pointer;
    transition: background-color .2s
}

.sidebar-section-header:hover {
    background-color: #2e2e2e
}

.sidebar-section-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px
}

.modern-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #2b2b2b;
    border: 1px solid #383838;
    border-radius: 2px;
    flex: 1 1 0;
    min-width: 50px;
    max-width: 100%;
    transition: border-color .2s
}

.modern-input-group:focus-within {
    border-color: #3b82f6
}

.modern-input-label {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 700;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none
}

.modern-number-input {
    flex: 1;
    width: 100%;
    min-width: 0;
    background: transparent;
    border: none;
    color: #e5e7eb;
    font-size: 12px;
    padding: 6px 8px 6px 24px;
    text-align: right;
    font-family: JetBrains Mono, monospace;
    outline: none
}

.modern-number-input::-webkit-outer-spin-button,
.modern-number-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0
}

.modern-number-input[type=number],
.modern-number-input[data-numeric] {
    -moz-appearance: textfield;
    appearance: textfield
}

.small-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 1px solid #474747;
    border-radius: 3px;
    background: #2f2f2f;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0
}

.small-btn:hover {
    background: #3a3a3a;
    border-color: #5a5a5a;
    color: #e5e7eb
}

.small-btn:active {
    background: #262626
}

.small-btn.active {
    background: var(--color-primary);
    border: none;
    color: #fff
}

.small-btn:disabled {
    background: #272727;
    border-color: #3a3a3a;
    color: #7f7f7f;
    cursor: not-allowed;
    opacity: .5
}

.small-btn:disabled:hover,
.small-btn:disabled:active {
    background: #272727;
    border-color: #3a3a3a;
    color: #7f7f7f
}

.small-toolbar-btn,
.timeline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--color-muted-light);
    border-radius: 4px;
    background: var(--color-muted);
    color: var(--text-main);
    cursor: pointer;
    padding: 0
}

.small-toolbar-btn:hover,
.timeline-btn:hover {
    background: var(--color-muted);
    border-color: var(--color-muted-light);
    color: var(--text-light)
}

.small-toolbar-btn.active,
.timeline-btn.active,
.timeline-btn.btn-primary {
    background: var(--color-primary);
    border: 1px solid transparent;
    color: #fff
}

.small-toolbar-btn:disabled,
.timeline-btn:disabled {
    background: #272727;
    border-color: #3a3a3a;
    color: #7f7f7f;
    cursor: not-allowed;
    opacity: .5
}

.small-toolbar-btn:disabled:hover,
.small-toolbar-btn:disabled:active,
.timeline-btn:disabled:hover,
.timeline-btn:disabled:active {
    background: #272727;
    border-color: #3a3a3a;
    color: #7f7f7f
}

.timeline-btn {
    flex-shrink: 0
}

.timeline-btn.has-text {
    width: auto;
    padding: 0 10px
}

.timeline-btn i,
.timeline-btn svg {
    width: 16px !important;
    height: 16px !important;
    display: block
}

.rotate-90-ccw {
    transform: rotate(-90deg)
}

.viewport-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #474747;
    border-radius: 4px;
    background: var(--color-muted-light);
    color: #e5e7eb;
    cursor: pointer;
    padding: 0
}

.viewport-btn:hover {
    background: #3a3a3a;
    border-color: #5a5a5a;
    color: #e5e7eb
}

.viewport-btn:active {
    background: #262626
}

.viewport-btn.active {
    background: var(--color-primary);
    border: none;
    color: #fff
}

.viewport-btn:disabled {
    background: #272727;
    border-color: #3a3a3a;
    color: #7f7f7f;
    cursor: not-allowed;
    opacity: .5
}

.viewport-btn:disabled:hover,
.viewport-btn:disabled:active {
    background: #272727;
    border-color: #3a3a3a;
    color: #7f7f7f
}

.viewport-btn svg,
.viewport-btn i {
    width: 16px;
    height: 16px;
    display: block
}

@media(max-width:768px) {
    .viewport-btn {
        width: 28px;
        height: 28px
    }

    .viewport-btn svg,
    .viewport-btn i {
        width: 14px;
        height: 14px
    }
}

body.hide-rotation-knobs .knobs-row,
body.hide-advanced-color #color-effect-multiply,
body.hide-advanced-color #color-effect-add-rgb,
body.hide-advanced-color #color-effect-add-hsv,
body.hide-advanced-color #color-effect-subtract-rgb,
body.hide-advanced-color #color-effect-subtract-hsv {
    display: none !important
}

body.hide-advanced-color #color-effect-blend {
    grid-column: span 2
}

.knobs-row {
    display: flex;
    justify-content: space-around;
    padding: 8px 0
}

.knob-container {
    position: relative;
    width: 70px;
    height: 70px;
    cursor: grab
}

.knob-container:active {
    cursor: grabbing
}

.knob-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid #444;
    box-sizing: border-box;
    transition: border-color .2s
}

.knob-container:hover .knob-ring {
    border-color: #666
}

.knob-container.dragging .knob-ring {
    border-color: var(--text-muted)
}

.knob-rotator {
    position: absolute;
    inset: 0;
    pointer-events: none
}

.knob-thumb {
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translate(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: 0 0 6px #00000080;
    border: 2px solid #222
}

.knob-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background-color: #444;
    border-radius: 50%
}

.knob-value {
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translate(-50%);
    font-size: 10px;
    font-family: JetBrains Mono, monospace;
    color: var(--text-muted);
    white-space: nowrap
}

.color-swatches-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px
}

.color-swatch-item {
    display: flex;
    flex-direction: column;
    gap: 4px
}

.color-swatch-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase
}

.prop-info {
    position: relative;
    display: inline-flex;
    align-items: center
}

.prop-info-icon {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    opacity: 1;
    margin-left: 6px;
    transition: color .15s ease, transform .15s ease;
    cursor: default;
    display: inline-flex;
    vertical-align: middle;
    flex-shrink: 0
}

.prop-info:hover .prop-info-icon,
.prop-info:focus-within .prop-info-icon {
    color: var(--color-primary-light);
    transform: translateY(-1px)
}

.prop-info-bubble {
    position: fixed;
    background: #0f1117;
    color: #e2e8f0;
    border: 1px solid #374151;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 11.5px;
    line-height: 1.55;
    white-space: normal;
    max-width: 260px;
    width: max-content;
    box-shadow: 0 8px 24px #000000b3, 0 0 0 1px #60a5fa14;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
    z-index: 9999;
    word-break: break-word
}

.prop-info-bubble:after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%);
    border: 6px solid transparent;
    border-top-color: #374151;
    width: 0;
    height: 0;
    background: none;
    box-shadow: none;
    border-radius: 0
}

.prop-info-bubble[data-below="1"]:after {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: #374151
}

.prop-info:hover .prop-info-bubble,
.prop-info:focus-within .prop-info-bubble {
    opacity: 1;
    pointer-events: auto
}

.color-swatch-box {
    height: 28px;
    width: 100%;
    border-radius: 2px;
    border: 1px solid #383838;
    cursor: pointer;
    position: relative;
    transition: border-color .2s, transform .1s
}

.color-swatch-box:hover {
    transform: scale(1.05);
    border-color: #666;
    z-index: 1
}

.context-submenu {
    position: fixed;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 4px 0;
    box-shadow: 0 4px 12px #00000080;
    z-index: 10001;
    overflow-y: auto;
    max-height: 380px;
    min-width: 180px
}

.context-submenu::-webkit-scrollbar {
    width: 6px
}

.context-submenu::-webkit-scrollbar-track {
    background: transparent
}

.context-submenu::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 10px
}

.context-submenu::-webkit-scrollbar-thumb:hover {
    background: #555
}

#loop-template-submenu {
    min-width: 200px
}

#loop-template-submenu .header {
    padding: 6px 12px;
    color: var(--text-muted);
    font-size: 11px;
    border-bottom: 1px solid #444
}

.loop-template-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: .85rem;
    color: var(--text-light);
    transition: background .15s
}

.loop-template-item:hover {
    background: #333;
    color: #fff
}

.loop-template-item .icon {
    width: 20px;
    display: inline-flex;
    align-items: center;
    color: var(--text-muted)
}

.loop-template-item:hover .icon {
    color: var(--color-primary)
}

#toast-container {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translate(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 100003;
    pointer-events: none;
    width: 100%;
    max-width: 500px
}

.toast {
    background: #2a2a2a;
    border: 1px solid #333;
    border-left: 4px solid #444;
    border-right: 4px solid #444;
    border-radius: 6px;
    padding: 12px 16px;
    min-width: 300px;
    max-width: 450px;
    box-shadow: 0 8px 24px #0009;
    display: flex;
    align-items: center;
    gap: 14px;
    animation: toast-slide-in .35s cubic-bezier(.175, .885, .32, 1.1) forwards;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    transform-origin: top center;
    zoom: var(--toast-scale, 1)
}

.toast.success {
    border-left-color: var(--color-primary);
    border-right-color: var(--color-primary)
}

.toast.success .icon {
    color: var(--color-primary)
}

.toast.error {
    border-left-color: var(--color-danger);
    border-right-color: var(--color-danger)
}

.toast.error .icon {
    color: var(--color-danger)
}

.toast.warning {
    border-left-color: var(--color-warning, #f59e0b);
    border-right-color: var(--color-warning, #f59e0b)
}

.toast.warning .icon {
    color: var(--color-warning, #f59e0b)
}

.toast.info {
    border-left-color: #3b82f6;
    border-right-color: #3b82f6
}

.toast.info .icon {
    color: #3b82f6
}

.toast-content {
    flex: 1
}

.toast-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px
}

.toast-action-btn {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, .2);
    background: #ffffff1a;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s ease
}

.toast-action-btn:hover {
    background: #fff3;
    border-color: #ffffff4d
}

.toast-action-btn.primary {
    background: #fff;
    color: #111;
    border-color: #fff
}

.toast-action-btn.primary:hover {
    background: #eee;
    transform: translateY(-1px)
}

.toast-title {
    font-weight: 700;
    font-size: 13px;
    color: #fff;
    margin-bottom: 2px
}

.toast-message {
    font-size: 12px;
    color: var(--text-main);
    line-height: 1.4
}

.toast-close {
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all .2s
}

.toast-close:hover {
    background: #ffffff1a;
    color: #fff
}

.toast-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #444
}

.toast.success .toast-progress-bar {
    background: var(--color-primary)
}

.toast.error .toast-progress-bar {
    background: var(--color-danger)
}

.toast.warning .toast-progress-bar {
    background: var(--color-warning, #f59e0b)
}

.toast.info .toast-progress-bar {
    background: #3b82f6
}

.toast.hiding {
    animation: toast-fade-out .3s ease-in forwards
}

@keyframes toast-slide-in {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(.9)
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1)
    }
}

@keyframes toast-fade-out {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1)
    }

    to {
        opacity: 0;
        transform: translateY(-20px) scale(.95)
    }
}

.color-swatch-box.active {
    border-color: var(--color-primary);
    box-shadow: none
}

.color-swatch-box.active:after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .5)
}

.modern-slider-row {
    display: flex;
    flex-direction: column;
    gap: 4px
}

.modern-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.modern-small-input {
    width: 60px;
    background-color: #2b2b2b;
    border: 1px solid #383838;
    border-radius: 2px;
    color: #e5e7eb;
    text-align: right;
    font-size: 12px;
    font-family: JetBrains Mono, monospace;
    padding: 2px 6px;
    outline: none;
    transition: border-color .2s
}

.modern-small-input:hover {
    border-color: #4a4a4a
}

.modern-small-input:focus {
    border-color: var(--color-primary);
    background-color: #333
}

.modern-small-input::-webkit-outer-spin-button,
.modern-small-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0
}

.modern-small-input[type=number],
.modern-small-input[data-numeric] {
    -moz-appearance: textfield
}

.nested-props-container {
    border: 1px solid #383838;
    border-radius: 2px;
    background-color: #1e1e1e;
    overflow: hidden
}

.nested-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background-color: #252525;
    cursor: pointer
}

.nested-header input[type=checkbox],
.mc-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer
}

.nested-header input[type=checkbox] {
    margin-left: auto
}

.nested-header:hover {
    background-color: #2a2a2a
}

.chevron {
    transition: transform .2s
}

.chevron.collapsed {
    transform: rotate(-90deg)
}

.nested-content {
    padding: 8px;
    border-top: 1px solid #333;
    display: flex;
    flex-direction: column;
    gap: 12px
}

.nested-content.hidden {
    display: none !important
}

.nested-content.disabled {
    opacity: .45;
    pointer-events: none
}

.nested-content.disabled input,
.nested-content.disabled select,
.nested-content.disabled button,
.nested-content.disabled textarea {
    cursor: not-allowed
}

.rotate-icon-0 {
    transform: rotate(0);
    transition: transform .2s
}

.rotate-icon-neg-90 {
    transform: rotate(-90deg);
    transition: transform .2s
}

h2 {
    margin: 0 0 10px;
    color: var(--color-primary);
    border-bottom: 2px solid #444;
    padding-bottom: 5px
}

h3 {
    margin: 0 0 10px;
    color: var(--color-primary)
}

.control-group {
    background: #383838;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #444;
    margin-bottom: 10px
}

#properties-tab {
    position: relative;
    min-height: 100%
}

#properties-panel {
    display: none
}

#properties-panel.active {
    display: block;
    animation: fadeIn .3s ease
}

#light-properties,
#camera-properties {
    display: none
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-5px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.property-group {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden
}

.property-group-header {
    background: linear-gradient(to bottom, #3a3a3a, #333);
    padding: 8px 12px;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: .85rem;
    color: #eee;
    border-bottom: 1px solid #444;
    transition: background .2s
}

.property-group-header:hover {
    background: linear-gradient(to bottom, #444, #3a3a3a)
}

.property-group-header:after {
    content: "▼";
    font-size: .7rem;
    color: var(--text-muted);
    transition: transform .3s
}

.property-group-header.collapsed:after {
    transform: rotate(-90deg)
}

.property-group-content {
    padding: 10px;
    max-height: 1000px;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease
}

.property-group-content.collapsed {
    max-height: 0;
    padding: 0 10px
}

.property-subgroup {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #444
}

.property-subgroup:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none
}

.input-row {
    display: flex;
    gap: 8px
}

.input-row label {
    flex: 1
}

.sub-label {
    font-size: .75rem;
    color: var(--color-primary);
    margin-top: 0;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700
}

label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .9rem;
    margin-bottom: 2px;
    margin-top: 5px
}

input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button,
input[data-numeric]::-webkit-outer-spin-button,
input[data-numeric]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0
}

input[type=number],
input[data-numeric] {
    -moz-appearance: textfield;
    appearance: textfield
}

input[type=number],
input[data-numeric] {
    background: #222;
    border: 1px solid #555;
    color: #fff;
    width: 50px;
    border-radius: 3px;
    padding-left: 5px
}

input[data-numeric].numeric-invalid {
    border-color: #e5484d;
    outline: 1px solid #e5484d
}

input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 3px;
    background: var(--color-muted-light);
    border-radius: 1.5px;
    outline: none;
    cursor: pointer;
    margin: 8px 0;
    touch-action: pan-y
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: var(--color-secondary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 1px 3px #0006;
    border: 2px solid #2a2a2a;
    transition: transform .1s ease, box-shadow .1s ease
}

input[type=range]:active::-webkit-slider-thumb {
    transform: scale(1.15);
    box-shadow: 0 0 0 4px #f59e0b66, 0 2px 4px #00000080
}

input[type=range]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--color-secondary);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #2a2a2a;
    box-shadow: 0 1px 3px #0006;
    transition: transform .1s ease
}

input[type=range]:active::-moz-range-thumb {
    transform: scale(1.15)
}

input[type=color] {
    border: none;
    width: 40px;
    height: 25px;
    cursor: pointer;
    background: none
}

button {
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    transition: background .2s
}

button:hover {
    background-color: var(--color-primary-dark)
}

button.secondary {
    background-color: #555;
    margin-top: 5px
}

button.secondary:hover {
    background-color: #666
}

button.blue {
    background-color: #2196f3
}

button.blue:hover {
    background-color: #0b7dda
}

button.red {
    background-color: #f44336;
    margin-top: 10px
}

button.red:hover {
    background-color: #d32f2f
}

.mode-toggle {
    display: flex;
    gap: 5px;
    margin-bottom: 10px
}

.mode-toggle button {
    flex: 1;
    font-size: .8rem
}

.mode-toggle button.active {
    background-color: orange;
    color: #000
}

.instruction-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: #0009;
    padding: 10px;
    border-radius: 8px;
    pointer-events: none;
    font-size: .9rem;
    color: #fff
}

#drop-zone {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #10b981cc;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1000;
    border: 5px dashed white;
    box-sizing: border-box
}

#drop-zone.active {
    display: flex
}

#drop-zone h2 {
    color: #fff;
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, .5)
}

.mc-loading-container {
    text-align: center;
    padding: 40px;
    color: var(--text-muted)
}

.mc-loading-spinner {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
    animation: spin 1s linear infinite;
    margin: 0 auto;
    display: block
}

.mc-loading-text {
    margin-top: 12px;
    font-size: 14px;
    color: #d1d5db;
    font-weight: 500
}

.mc-loading-subtext {
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-muted)
}

@keyframes spin {
    0% {
        transform: rotate(0)
    }

    to {
        transform: rotate(360deg)
    }
}

.schematic-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0009;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    flex-direction: column
}

.schematic-modal {
    background: #1e1e1e;
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    padding: 24px 40px;
    text-align: center;
    color: #e5e7eb;
    box-shadow: 0 10px 40px #00000080;
    min-width: 380px
}

.schematic-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff
}

.schematic-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-family: monospace
}

.schematic-progress-container {
    width: 100%;
    height: 6px;
    background: #333;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px
}

.schematic-progress-fill {
    width: 0%;
    height: 100%;
    background: var(--color-primary);
    border-radius: 3px;
    transition: width .2s ease-out
}

.schematic-status-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px
}

.project-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0009;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000
}

.project-modal {
    background: #1e1e1e;
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    padding: 24px 40px;
    width: 400px;
    box-shadow: 0 10px 40px #00000080;
    display: flex;
    flex-direction: column
}

.project-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
    text-align: center
}

.project-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    font-family: monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center
}

.project-progress-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between
}

.project-progress-container {
    width: 100%;
    height: 6px;
    background: #333;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 16px
}

.project-progress-fill {
    width: 0%;
    height: 100%;
    background: var(--color-primary);
    border-radius: 3px
}

#project-item-progress-fill {
    background: var(--color-secondary)
}

.mc-tab.active {
    border-bottom-color: var(--color-primary) !important;
    color: var(--color-primary) !important
}

.mc-model-item {
    padding: 10px 16px;
    background: transparent;
    border-bottom: 1px solid #333;
    cursor: pointer;
    transition: none
}

.mc-model-item:hover {
    background: #2b2b2b
}

.mc-model-item.selected {
    background: #3b2e3b
}

.mc-model-item h4 {
    margin: 0 0 2px;
    font-size: 13px;
    color: #e5e7eb;
    font-weight: 500
}

.mc-model-item p {
    margin: 0;
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.mc-state-badge {
    display: inline-block;
    padding: 2px 6px;
    background: #333;
    border-radius: 3px;
    font-size: 10px;
    color: var(--text-muted);
    margin: 2px 2px 0 0
}

#mc-detail-panel {
    display: none;
    border-top: 1px solid #383838;
    background: #1a1a1a;
    padding: 20px 24px
}

#mc-detail-panel.active {
    display: block
}

.mc-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px
}

.mc-detail-header h3 {
    margin: 0;
    font-size: 16px;
    color: #e5e7eb
}

.mc-state-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px
}

.mc-state-row label {
    min-width: 120px;
    font-size: 13px;
    color: var(--text-muted);
    text-transform: capitalize
}

.mc-state-row select {
    flex: 1;
    padding: 6px 10px;
    background: #2b2b2b;
    border: 1px solid #383838;
    border-radius: 4px;
    color: #e5e7eb;
    font-size: 13px;
    cursor: pointer
}

.mc-state-row select:hover {
    border-color: var(--color-primary)
}

.mc-state-row select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: none
}

.mc-detail-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #333
}

.mc-btn-import {
    padding: 10px 24px;
    background: var(--color-primary);
    border: none;
    border-radius: 4px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background .2s
}

.mc-btn-import:hover {
    background: var(--color-primary-dark)
}

.mc-btn-import.mc-btn-secondary {
    background: var(--color-secondary);
    color: #171717
}

.mc-btn-import.mc-btn-secondary:hover {
    background: color-mix(in srgb, var(--color-secondary) 82%, #000)
}

.mc-btn-back {
    padding: 10px 24px;
    background: #383838;
    border: none;
    border-radius: 4px;
    color: #e5e7eb;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background .2s
}

.mc-btn-back:hover {
    background: #444
}

.mc-detail-info {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px
}

.mc-detail-thumbnail-wrap {
    margin: 0 0 10px;
    border: 1px solid #333;
    border-radius: 6px;
    overflow: hidden;
    background: #111;
    width: 150px;
    aspect-ratio: 1 / 1
}

.mc-detail-thumbnail {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.mc-detail-info span {
    color: var(--text-muted)
}

#secondary-snap-indicator {
    position: absolute;
    border: 2px dashed var(--color-primary);
    background: color-mix(in srgb, var(--color-primary) 15%, transparent);
    z-index: 199;
    pointer-events: none;
    display: none;
    transition: top .2s, left .2s, right .2s;
    margin: 0
}

.rotate-ccw-90 {
    transform: rotate(-90deg)
}

#secondary-preview {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    background: #222;
    border: 1px solid #444;
    box-shadow: 0 4px 10px #00000080;
    display: flex;
    flex-direction: column;
    z-index: 200;
    border-radius: 0;
    overflow: hidden;
    transition: width .3s, height .3s, top .3s, right .3s, left .3s, bottom .3s
}

#secondary-preview.minimized {
    width: 200px !important;
    height: auto !important
}

#secondary-preview.minimized #secondary-canvas-container {
    display: none
}

#secondary-preview.minimized :is(#btn-toggle-camera-effect, #btn-toggle-secondary-quality, #btn-toggle-grid-overlay, #btn-toggle-secondary-walk-mode),
#secondary-preview.header-buttons-hidden :is(#btn-toggle-camera-effect, #btn-toggle-secondary-quality, #btn-toggle-grid-overlay, #btn-toggle-secondary-walk-mode) {
    display: none
}

#secondary-header .btn-on,
#secondary-header .btn-off {
    animation: header-toggle-btn-in .3s ease
}

@keyframes header-toggle-btn-in {
    0% {
        opacity: 0;
        transform: translateY(-3px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

#secondary-header {
    background: #333;
    padding: 5px 10px;
    cursor: move;
    display: flex;
    justify-content: space-between;
    align-items: center;
    -webkit-user-select: none;
    user-select: none;
    border-bottom: 1px solid #444
}

#secondary-header h4 {
    margin: 0;
    font-size: .8rem;
    color: var(--text-light)
}

#btn-minimize-preview {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0 4px;
    font-size: 1rem;
    line-height: 1
}

#btn-minimize-preview:hover {
    color: #fff
}

#secondary-canvas-container {
    position: relative;
    width: 100%;
    height: 180px;
    background: #000;
    cursor: grab;
    overflow: hidden
}

#secondary-canvas-container:active {
    cursor: grabbing
}

#secondary-canvas {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000;
    pointer-events: none
}

#secondary-grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    display: none
}

#secondary-grid-overlay .sg-line {
    position: absolute;
    background: #fff6
}

#secondary-grid-overlay .sg-h {
    left: 0;
    right: 0;
    height: 1px
}

#secondary-grid-overlay .sg-h:first-child {
    top: 33.333%
}

#secondary-grid-overlay .sg-h:nth-child(2) {
    top: 66.666%
}

#secondary-grid-overlay .sg-v {
    top: 0;
    bottom: 0;
    width: 1px
}

#secondary-grid-overlay .sg-v:nth-child(3) {
    left: 33.333%
}

#secondary-grid-overlay .sg-v:nth-child(4) {
    left: 66.666%
}

#secondary-empty-camera-overlay {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none
}

#secondary-preview.minimized #secondary-empty-camera-overlay {
    display: none !important
}

#btn-secondary-add-camera {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none
}

.secondary-resize-handle {
    position: absolute;
    background: transparent;
    z-index: 10
}

.secondary-resize-handle:hover {
    background: #60a5fa4d
}

.secondary-resize-bottom {
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    cursor: ns-resize
}

.secondary-resize-right {
    top: 0;
    right: 0;
    bottom: 0;
    width: 6px;
    cursor: ew-resize
}

.secondary-resize-left {
    top: 0;
    left: 0;
    bottom: 0;
    width: 6px;
    cursor: ew-resize
}

.secondary-resize-corner-br {
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    cursor: nwse-resize
}

.secondary-resize-corner-br:after {
    content: "";
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #666;
    border-bottom: 2px solid #666
}

.secondary-resize-corner-bl {
    bottom: 0;
    left: 0;
    width: 12px;
    height: 12px;
    cursor: nesw-resize
}

.secondary-resize-corner-bl:after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 2px;
    width: 8px;
    height: 8px;
    border-left: 2px solid #666;
    border-bottom: 2px solid #666
}

.collapsible {
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.collapsible:after {
    content: "▼";
    font-size: .8rem;
    transition: transform .3s
}

.collapsible.collapsed:after {
    transform: rotate(-90deg)
}

.collapsible-content {
    max-height: 500px;
    overflow: hidden;
    transition: max-height .3s ease
}

.collapsible-content.collapsed {
    max-height: 0
}

#bottom-panel {
    height: 280px;
    background-color: #1e1e1e;
    border-top: 2px solid #444;
    display: flex;
    flex-direction: column;
    z-index: 50;
    -webkit-user-select: none;
    user-select: none;
    position: relative;
    flex-shrink: 0
}

#timeline-resize-handle {
    position: absolute;
    top: -6px;
    left: 0;
    right: 0;
    height: 12px;
    cursor: ns-resize;
    z-index: 100;
    background: transparent;
    touch-action: none
}

#timeline-resize-handle:hover {
    background: linear-gradient(to bottom, transparent calc(50% - 1px), #4A5568 calc(50% - 1px), #4A5568 calc(50% + 1px), transparent calc(50% + 1px))
}

#timeline-controls-bar {
    height: 40px;
    background-color: #2a2a2a;
    border-bottom: 1px solid #444;
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 10px;
    flex-shrink: 0;
    overflow: visible
}

@media(max-width:1024px) {
    #timeline-controls-bar {
        overflow: visible;
        max-width: 100%;
        box-sizing: border-box
    }

    #timeline-controls-bar::-webkit-scrollbar {
        display: none
    }
}

#timeline-main-area {
    flex: 1;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    min-height: 0
}

#outliner-section {
    width: 250px;
    min-width: 180px;
    max-width: 520px;
    border-right: 2px solid #333;
    display: flex;
    flex-direction: column;
    background-color: #252525;
    overflow: hidden
}

#outliner-resize-handle {
    width: 6px;
    cursor: col-resize;
    background: transparent;
    position: relative;
    z-index: 2;
    transition: background .15s ease;
    touch-action: none
}

#outliner-resize-handle:hover {
    background: #ffffff0f
}

#timeline-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #1e1e1e;
    position: relative;
    overflow: hidden
}

.panel-header {
    box-sizing: border-box;
    height: 32px;
    background-color: #333;
    border-bottom: 1px solid #111;
    display: flex;
    align-items: center;
    padding: 0 10px;
    font-size: .8rem;
    color: var(--text-light);
    flex-shrink: 0;
    justify-content: space-between
}

.panel-header-buttons {
    display: flex;
    align-items: center;
    gap: 4px
}

.panel-header-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-light);
    padding: 4px;
    border-radius: 4px;
    cursor: pointer
}

.panel-header-icon-btn:hover {
    background: #ffffff14
}

.panel-header-icon-btn.active {
    background: var(--color-primary, #059669);
    color: #fff
}

#outliner-scroll-area {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #252525;
    scrollbar-width: none;
    -ms-overflow-style: none
}

#outliner-scroll-area::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0
}

#timeline-ruler-area {
    box-sizing: border-box;
    height: 32px;
    background-color: #2a2a2a;
    border-bottom: 1px solid #444;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    touch-action: pan-y
}

#timeline-ruler-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none
}

.hold-ripple {
    position: fixed;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(.3);
    background: color-mix(in srgb, var(--color-primary, #10b981) 35%, transparent);
    border: 1px solid var(--color-primary, #10b981);
    opacity: .6;
    pointer-events: none;
    z-index: 200000;
    animation: hold-ripple-arm .5s ease-out forwards
}

.hold-ripple.released {
    animation: hold-ripple-release .4s ease-out forwards
}

@keyframes hold-ripple-arm {
    0% {
        transform: translate(-50%, -50%) scale(.3);
        opacity: .6
    }

    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: .35
    }
}

@keyframes hold-ripple-release {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: .5
    }

    to {
        transform: translate(-50%, -50%) scale(3.2);
        opacity: 0
    }
}

#timeline-scroll-area {
    flex: 1;
    overflow-y: auto;
    overflow-x: scroll;
    position: relative;
    background-color: #1e1e1e;
    touch-action: pan-x pan-y
}

#timeline-scroll-area::-webkit-scrollbar {
    width: 12px;
    height: 12px
}

#timeline-scroll-area::-webkit-scrollbar-track {
    background: transparent
}

#timeline-scroll-area::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 6px;
    border: 2px solid transparent;
    background-clip: padding-box
}

#timeline-scroll-area::-webkit-scrollbar-thumb:hover {
    background: #555;
    border: 2px solid transparent;
    background-clip: padding-box
}

#timeline-scroll-area::-webkit-scrollbar-corner {
    background: transparent
}

.outliner-item {
    height: 32px;
    display: flex;
    align-items: center;
    padding: 0 4px;
    border-bottom: 1px solid #333;
    font-size: .8rem;
    color: var(--text-main);
    cursor: pointer;
    white-space: nowrap;
    transition: background .1s;
    position: relative;
    min-width: 100%;
    box-sizing: border-box
}

.outliner-item:hover {
    background-color: #383838;
    color: #fff
}

.outliner-item.selected {
    background-color: var(--color-primary-dark);
    color: #fff
}

.outliner-item.selected:first-of-type {
    background-color: var(--color-primary-dark)
}

.outliner-checkbox {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    margin: 0 6px 0 0;
    cursor: pointer;
    accent-color: var(--color-primary, #059669)
}

#outliner-list {
    position: relative;
    min-height: 100%
}

.outliner-drop-indicator {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-primary, #059669);
    border-radius: 2px;
    pointer-events: none;
    z-index: 5;
    box-shadow: 0 0 4px #05966999
}

.outliner-item.drop-reparent-target {
    background-color: var(--color-primary, #059669);
    color: #fff
}

.outliner-item.drop-invalid {
    background-color: #5a2a2a;
    color: #fff
}

.outliner-drag-ghost {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 99999;
    pointer-events: none;
    opacity: .92;
    box-shadow: 0 8px 24px #0006;
    border: 1px solid var(--color-primary, #059669);
    border-radius: 4px;
    background: #2b2b2b;
    will-change: transform;
    width: max-content
}

.outliner-drag-ghost-chip {
    height: 32px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    font-size: .8rem;
    color: var(--text-main, #e5e5e5);
    white-space: nowrap;
    box-sizing: border-box;
    background: transparent;
    border-bottom: none;
    cursor: grabbing;
    min-width: auto;
    width: max-content;
    max-width: min(60vw, 320px);
    border-radius: 3px
}

.outliner-drag-ghost-chip i,
.outliner-drag-ghost-chip svg {
    pointer-events: none
}

.outliner-drag-ghost-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--color-primary, #059669);
    color: #fff;
    border-radius: 999px;
    padding: 0 6px;
    font-size: .7rem;
    line-height: 18px;
    box-shadow: 0 2px 6px #0006
}

.outliner-item.dragging-source {
    opacity: .4
}

.timeline-track.selected {
    background-color: #3a2a3a !important
}

.outliner-controls {
    display: flex;
    gap: 2px;
    margin-left: auto;
    margin-right: 2px;
    flex-shrink: 0
}

.outliner-controls .outliner-visibility-toggle,
.outliner-controls .outliner-mute-toggle,
.outliner-controls .outliner-select-toggle,
.outliner-controls .outliner-lock-toggle {
    margin-right: 0
}

@media(max-width:768px) {
    #timeline-controls-bar {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
        box-sizing: border-box;
        display: block
    }

    #timeline-controls-bar>br {
        display: none
    }

    #timeline-controls-bar {
        display: flex;
        justify-content: flex-start
    }

    #timeline-controls-bar::-webkit-scrollbar {
        display: none
    }

    #bottom-panel {
        max-width: 100%;
        overflow-x: hidden
    }

    .hide-on-mobile {
        display: none
    }

    .toolbar-btn svg {
        margin-right: 0 !important
    }

    .toolbar-btn {
        padding: 4px 6px !important;
        font-size: .75rem !important
    }

    #timeline-resize-handle {
        display: none !important
    }
}

@media(max-height:500px)and (orientation:landscape) {
    #bottom-panel {
        height: 130px;
        max-width: 100%;
        overflow-x: hidden
    }

    #sidebar {
        width: 280px;
        min-width: 280px
    }

    #top-toolbar {
        --toolbar-pad-x: 10px;
        padding: 4px var(--toolbar-pad-x)
    }

    .toolbar-btn {
        padding: 4px 8px;
        font-size: .75rem
    }

    h2,
    h3 {
        margin-bottom: 5px
    }

    .hide-on-mobile {
        display: none !important
    }

    .toolbar-btn svg {
        margin-right: 0 !important
    }
}

.outliner-controls button {
    background: none;
    border: none;
    color: #777;
    cursor: pointer;
    padding: 2px 4px;
    font-size: .7rem;
    line-height: 1;
    border-radius: 2px
}

.outliner-controls button:hover {
    background-color: #444;
    color: var(--text-light)
}

.outliner-controls .visibility-btn.hidden {
    color: var(--color-danger)
}

.outliner-controls .lock-btn.locked {
    color: #f59e0b
}

.outliner-indent {
    display: inline-block;
    width: 16px;
    height: 100%;
    flex-shrink: 0
}

.outliner-chevron {
    cursor: pointer;
    color: #777;
    font-size: .7rem;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
    transition: transform .2s
}

.outliner-chevron:hover {
    color: var(--text-light)
}

.outliner-chevron.collapsed {
    transform: rotate(-90deg)
}

.outliner-icon {
    margin-right: 6px;
    opacity: .7;
    font-size: .75rem;
    flex-shrink: 0
}

.outliner-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-user-select: none;
    user-select: none
}

.outliner-rename-input {
    flex: 1;
    min-width: 60px;
    height: 22px;
    padding: 1px 6px;
    margin: 0;
    font-size: .75rem;
    font-family: inherit;
    color: var(--text-light, #f3f4f6);
    background-color: var(--bg-darkest, #111827);
    border: 1px solid var(--color-primary, #10b981);
    border-radius: 4px;
    outline: none;
    box-sizing: border-box;
    box-shadow: 0 0 0 2px #10b98159
}

.timeline-track {
    box-sizing: border-box;
    height: 32px;
    border-bottom: 1px solid #2a2a2a;
    position: relative;
    background-color: #1e1e1e
}

.timeline-track:nth-child(2n) {
    background-color: #222
}

.timeline-track.selected {
    background-color: #3a2a3a
}

.timeline-track.track-hidden .keyframe,
.timeline-track.track-muted .keyframe,
.timeline-track.track-hidden .audio-clip,
.timeline-track.track-muted .audio-clip,
.timeline-track.track-hidden .video-clip,
.timeline-track.track-muted .video-clip {
    opacity: .6
}

.timeline-track.locked {
    background-color: #252525;
    opacity: .6
}

.keyframe {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: #fbbf24;
    border: 1px solid #F59E0B;
    border-radius: 2px;
    cursor: pointer;
    z-index: 5;
    transition: transform .1s, background-color .1s;
    touch-action: pan-y
}

.keyframe:hover {
    transform: translate(-50%, -50%) scale(1.3);
    background-color: #fcd34d
}

.keyframe.selected {
    background-color: #f87171;
    border-color: var(--color-danger);
    transform: translate(-50%, -50%) rotate(45deg);
    width: 12px;
    height: 12px;
    box-shadow: 0 0 0 2px var(--color-danger), 0 2px 8px #ef444499
}

.keyframe.audio-clip,
.keyframe.video-clip,
.keyframe.audio-clip.selected,
.keyframe.video-clip.selected {
    transform: none !important;
    top: 2px !important;
    height: 28px !important
}

.keyframe:active {
    cursor: grabbing
}

.keyframe.locked {
    background-color: var(--text-muted);
    border-color: var(--text-dim);
    cursor: not-allowed;
    opacity: .7
}

#ruler-scroll-sync {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 2
}

#ruler-spacer {
    height: 1px
}

#playhead-marker {
    position: absolute;
    top: 0;
    left: 0;
    width: 12px;
    height: 32px;
    background-color: #ff5252;
    clip-path: polygon(0 0, 100% 0, 100% 55%, calc(50% + 1px) 75%, calc(50% + 1px) 100%, calc(50% - 1px) 100%, calc(50% - 1px) 75%, 0 55%);
    transform: translate(-50%);
    cursor: ew-resize;
    pointer-events: auto;
    z-index: 6;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5))
}

#playhead-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    min-height: 100%;
    background-color: #ff5252;
    z-index: 15;
    pointer-events: none;
    transform: translate(-1px)
}

.work-area-ruler-bar {
    position: absolute;
    top: 0;
    height: 100%;
    background-color: #10b98124;
    z-index: 1;
    pointer-events: none
}

.work-area-marker {
    position: absolute;
    top: 0;
    height: 32px;
    width: 6px;
    pointer-events: auto;
    cursor: ew-resize;
    z-index: 5
}

.work-area-marker.in-marker {
    transform: translate(0)
}

.work-area-marker.in-marker .marker-flag {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    clip-path: polygon(0 0, 100% 0, 100% 55%, 2px 75%, 2px 100%, 0 100%);
    pointer-events: none;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5))
}

.work-area-marker.in-marker .marker-ruler-line {
    display: none
}

.work-area-marker.out-marker {
    transform: translate(-100%)
}

.work-area-marker.out-marker .marker-flag {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    clip-path: polygon(0 0, 100% 0, 100% 100%, calc(100% - 2px) 100%, calc(100% - 2px) 75%, 0 55%);
    pointer-events: none;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5))
}

.work-area-marker.out-marker .marker-ruler-line {
    display: none
}

.work-area-highlight {
    position: absolute;
    top: 0;
    min-height: 100%;
    background-color: #10b98114;
    pointer-events: none;
    z-index: 0
}

.work-area-track-line {
    position: absolute;
    top: 0;
    width: 2px;
    min-height: 100%;
    background-color: var(--color-primary);
    pointer-events: none;
    z-index: 10
}

.work-area-track-line.in-line {
    transform: translate(0)
}

.work-area-track-line.out-line {
    transform: translate(-2px)
}

.ruler-tick {
    position: absolute;
    bottom: 0;
    width: 1px;
    background-color: #555;
    height: 6px;
    pointer-events: none
}

.ruler-tick.major {
    height: 12px;
    background-color: var(--text-muted)
}

.ruler-label {
    position: absolute;
    top: 2px;
    font-size: .65rem;
    color: var(--text-muted);
    transform: translate(-50%);
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none
}

.timeline-controls {
    display: flex;
    gap: 8px;
    align-items: center
}

.timeline-controls button:not(.timeline-btn) {
    display: none
}

.timeline-controls input[type=number],
.timeline-controls input[data-numeric] {
    background: #222;
    border: 1px solid #444;
    color: #eee;
    width: 60px;
    height: 28px;
    padding: 0 6px;
    border-radius: 4px;
    font-size: 12px
}

.timeline-controls select {
    background: #222;
    border: 1px solid #444;
    color: #eee;
    height: 28px;
    padding: 0 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px
}

.timeline-controls label,
.timeline-controls .timeline-control {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .75rem;
    color: var(--text-muted);
    margin: 0
}

.tab-content {
    display: none
}

.tab-content.active {
    display: block
}

.keyframe-list {
    max-height: 200px;
    overflow-y: auto;
    background: #2a2a2a;
    border-radius: 4px;
    padding: 8px
}

.keyframe-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px;
    background: #333;
    margin-bottom: 4px;
    border-radius: 3px;
    font-size: .75rem
}

.keyframe-item:hover {
    background: #3a3a3a
}

.keyframe-item.selected {
    background: var(--color-primary-dark)
}

.keyframe-item button {
    padding: 2px 6px;
    font-size: .7rem;
    background: #444
}

#timeline-context-menu {
    position: fixed;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 4px 0;
    min-width: 180px;
    max-height: 500px;
    overflow-y: auto;
    box-shadow: 0 4px 12px #00000080;
    z-index: 10000;
    display: none
}

#history-context-menu {
    position: fixed;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 10px;
    width: 220px;
    max-height: 400px;
    box-shadow: 0 4px 12px #00000080;
    z-index: 10001;
    display: none;
    flex-direction: column
}

.history-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    cursor: move;
    -webkit-user-select: none;
    user-select: none;
    padding: 2px 0 6px;
    border-bottom: 1px solid #3c3c3c
}

.history-close-btn {
    background: transparent;
    border: none;
    color: #9a9a9a;
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background .2s, color .2s
}

.history-close-btn:hover {
    background: #ffffff1a;
    color: #fff
}

.history-menu-btn {
    flex: 1;
    background: #363636;
    color: #e8e8e8;
    border: 1px solid #4a4a4a;
    border-radius: 2px;
    padding: 5px 6px;
    font-size: 11px;
    cursor: pointer
}

.history-menu-btn:hover:not(:disabled) {
    background: #444
}

.history-menu-btn:disabled {
    opacity: .5;
    cursor: default
}

.history-menu-list {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #3a3a3a;
    background: #1d1d1d;
    border-radius: 2px;
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px
}

[id$=-context-menu]::-webkit-scrollbar,
.context-submenu::-webkit-scrollbar,
.history-menu-list::-webkit-scrollbar {
    width: 6px
}

[id$=-context-menu]::-webkit-scrollbar-track,
.context-submenu::-webkit-scrollbar-track,
.history-menu-list::-webkit-scrollbar-track {
    background: transparent
}

[id$=-context-menu]::-webkit-scrollbar-thumb,
.context-submenu::-webkit-scrollbar-thumb,
.history-menu-list::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 10px
}

[id$=-context-menu]::-webkit-scrollbar-thumb:hover,
.context-submenu::-webkit-scrollbar-thumb:hover,
.history-menu-list::-webkit-scrollbar-thumb:hover {
    background: #555
}

.context-menu-item {
    padding: 8px 16px;
    cursor: pointer;
    font-size: .85rem;
    color: #ddd;
    display: flex;
    align-items: center;
    gap: 8px
}

.context-menu-item:hover {
    background: #3a3a3a
}

.context-menu-separator {
    height: 1px;
    background: #444;
    margin: 4px 0
}

.context-menu-item.disabled {
    opacity: .4;
    cursor: not-allowed
}

.context-menu-item.disabled:hover {
    background: transparent
}

#easing-submenu::-webkit-scrollbar {
    width: 8px
}

#easing-submenu::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px
}

#easing-submenu::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px
}

#easing-submenu::-webkit-scrollbar-thumb:hover {
    background: #666
}

.custom-dropdown {
    position: relative;
    display: inline-block;
    width: 100%
}

.custom-dropdown-trigger {
    padding: 6px 10px;
    font-size: 12px;
    background: #2b2b2b;
    border: 1px solid #383838;
    color: #eee;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    -webkit-user-select: none;
    user-select: none;
    transition: background .2s, border-color .2s
}

.custom-dropdown-trigger:hover {
    background: #333;
    border-color: #555
}

.custom-dropdown.is-disabled .custom-dropdown-trigger {
    opacity: .55;
    cursor: not-allowed
}

.custom-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: max-content;
    min-width: 100%;
    max-width: calc(100vw - 16px);
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 4px 0;
    box-shadow: 0 4px 12px #00000080;
    z-index: 120000;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: auto;
    display: none;
    margin-top: 4px
}

.custom-dropdown-menu.active {
    display: block
}

.custom-dropdown-menu.has-search {
    padding-top: 0
}

.custom-dropdown-search {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 6px 8px;
    background: #2a2a2a;
    border-bottom: 1px solid #444
}

.custom-dropdown-search-input {
    width: 100%;
    box-sizing: border-box;
    background: #1f1f1f;
    border: 1px solid #444;
    border-radius: 3px;
    color: #eee;
    font-size: 12px;
    padding: 6px 8px;
    outline: none
}

.custom-dropdown-search-input:focus {
    border-color: #666
}

.custom-dropdown-search-input::placeholder {
    color: var(--text-muted)
}

.custom-dropdown-empty {
    padding: 10px 16px;
    font-size: .8rem;
    color: var(--text-muted);
    text-align: center
}

.custom-dropdown-menu::-webkit-scrollbar {
    width: 6px
}

.custom-dropdown-menu::-webkit-scrollbar-track {
    background: #222
}

.custom-dropdown-menu::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 3px
}

.custom-dropdown-item {
    padding: 8px 16px;
    cursor: pointer;
    font-size: .85rem;
    color: #ddd;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background .1s
}

.custom-dropdown-item:hover {
    background: #3a3a3a
}

.custom-dropdown-item.disabled {
    opacity: .45;
    cursor: not-allowed
}

.custom-dropdown-item.disabled:hover {
    background: transparent
}

.prop-texture-thumb {
    width: 32px;
    height: 32px;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: #1a1a1a;
    background-image: linear-gradient(45deg, #2b2b2b 25%, transparent 25%), linear-gradient(-45deg, #2b2b2b 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #2b2b2b 75%), linear-gradient(-45deg, transparent 75%, #2b2b2b 75%);
    background-size: 8px 8px;
    background-position: 0 0, 0 4px, 4px -4px, -4px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 32px
}

.prop-texture-thumb.has-image {
    background-size: cover;
    background-position: center;
    image-rendering: pixelated
}

.custom-dropdown-item.selected {
    background: var(--color-primary-dark);
    color: #fff
}

.custom-dropdown-group-label {
    padding: 6px 16px;
    font-size: .7rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    pointer-events: none;
    border-top: 1px solid #444;
    margin-top: 4px;
    background: transparent
}

.custom-dropdown-group-label:first-child {
    border-top: none;
    margin-top: 0
}

:root {
    --easing-menu-width: 184px;
    --easing-picker-max-height: 460px;
    --easing-grid-gap: 3px;
    --easing-grid-pad: 4px;
    --easing-cell-pad: 3px;
    --easing-cell-gap: 2px;
    --easing-label-size: 8px;
    --easing-label-line: calc(var(--easing-label-size) * 1.1);
    --easing-column-width: calc((var(--easing-menu-width) - 2 * var(--easing-grid-pad) - 2 * var(--easing-grid-gap)) / 3);
    --easing-icon-max: 48px;
    --easing-icon-size: min(calc(var(--easing-column-width) - 2 * var(--easing-cell-pad) - var(--easing-cell-gap) - var(--easing-label-line)), var(--easing-icon-max))
}

.easing-grid-layout {
    width: var(--easing-menu-width);
    min-width: var(--easing-menu-width);
    max-height: var(--easing-picker-max-height)
}

.easing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--easing-grid-gap);
    padding: 2px var(--easing-grid-pad) var(--easing-grid-pad)
}

.easing-grid-cell {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    aspect-ratio: 1 / 1;
    gap: var(--easing-cell-gap);
    padding: var(--easing-cell-pad);
    border-radius: 4px;
    text-align: center
}

.easing-grid-cell-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--easing-icon-size);
    height: var(--easing-icon-size);
    flex: 0 0 var(--easing-icon-size)
}

.easing-grid-cell-icon svg {
    width: 100%;
    height: 100%
}

.easing-grid-cell-label {
    flex: 0 0 auto;
    max-width: 100%;
    font-size: var(--easing-label-size);
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-muted)
}

.easing-grid-cell.selected .easing-grid-cell-label {
    color: #fff
}

.easing-grid-layout .custom-dropdown-group-label {
    padding: 5px 8px;
    margin-top: 3px
}

.toolbar-section .custom-dropdown-trigger {
    background: #444;
    border: none;
    color: var(--text-light)
}

.toolbar-section .custom-dropdown-trigger:hover {
    background: #555
}

.settings-nav-item {
    border-radius: 0;
    margin: 0
}

.settings-nav-item.active,
.settings-nav-item.active i {
    color: var(--color-primary-light) !important
}

.mc-tree-source:has(.settings-nav-item.active) {
    border-color: var(--color-primary)
}

.export-left-column .mc-tree-source {
    margin-bottom: 0
}

.settings-section {
    display: none;
    flex-direction: column;
    gap: 0;
    animation: settingsFadeIn .2s ease
}

.settings-section.active {
    display: flex
}

@keyframes settingsFadeIn {
    0% {
        opacity: 0;
        transform: translateY(4px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.mc-modal-shell {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    box-sizing: border-box;
    background: #000000d9;
    z-index: 10000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: env(safe-area-inset-top, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-left: env(safe-area-inset-left, 0px)
}

.mc-modal-window {
    width: min(90%, 1420px);
    height: min(90%, 980px);
    background: #1e1e1e;
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    box-shadow: 0 10px 40px #00000080;
    display: flex;
    flex-direction: column;
    overflow: hidden
}

#mc-license-popup .mc-modal-window {
    height: auto;
    max-height: 80vh
}

#mc-license-popup .mc-modal-main {
    flex: 0 1 auto
}

.export-modal-window {
    width: min(90%, 980px);
    height: min(90%, 760px)
}

.settings-modal-window {
    width: min(90%, 720px);
    height: min(90%, 760px)
}

.settings-modal-window .export-modal-body {
    grid-template-columns: 240px 1fr
}

.confirm-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000b3;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center
}

.confirm-popup-content {
    background: #1e1e1e;
    padding: 24px;
    border-radius: 8px;
    min-width: 360px;
    border: 1px solid #3a3a3a;
    box-shadow: 0 8px 32px #00000080;
    text-align: center
}

.confirm-popup-title {
    color: #fff;
    font-size: 1rem;
    margin: 0 0 10px
}

.confirm-popup-message {
    color: var(--text-muted);
    font-size: .85rem;
    margin: 0 0 20px
}

.export-modal-body {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(320px, 1.4fr);
    min-height: 0;
    overflow: hidden
}

.export-left-column {
    background: #1a1a1a;
    border-right: 1px solid #333;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
    overflow: hidden;
    min-width: 180px
}

#settings-modal-content {
    padding: 0
}

#settings-modal-content .sidebar-section-content {
    padding-left: 16px;
    padding-right: 16px
}

.export-right-column {
    background: #1e1e1e;
    padding: 16px;
    overflow: auto;
    box-sizing: border-box;
    min-height: 0;
    min-width: 240px
}

.export-field-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px
}

.export-field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 16px
}

.export-checkbox-row {
    align-items: center;
    display: flex;
    gap: 8px
}

.export-checkbox-row input[type=checkbox] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-secondary);
    cursor: pointer
}

.export-field-row label {
    color: var(--text-light);
    font-size: .9rem;
    font-weight: 600
}

#media-export-popup .export-field-row select,
#media-export-popup .export-field-row input[type=text],
#media-export-popup .export-field-row input[type=range] {
    width: 100%;
    height: 32px;
    padding: 0 10px;
    border-radius: 4px;
    background: #1a1a1a;
    color: #fff;
    border: 1px solid #444;
    box-sizing: border-box;
    font-size: 13px
}

#media-export-popup #secondary-export-duration {
    width: 100%;
    box-sizing: border-box
}

#media-export-popup .export-number-input {
    height: 30px;
    padding: 0 10px;
    line-height: 30px;
    font-size: 13px
}

.template-export-window {
    width: min(90%, 760px);
    height: auto;
    max-height: min(90%, 520px)
}

#template-export-popup .export-modal-body {
    grid-template-columns: 1fr 1fr
}

.template-export-left {
    gap: 12px
}

.template-export-preview-card {
    background: #222;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden
}

.template-export-thumb-wrap {
    aspect-ratio: 16 / 9;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #333
}

.template-export-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.template-export-thumb-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-dim);
    font-size: 11px
}

.template-export-meta {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px
}

.template-export-current-label {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.template-export-hint {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4
}

.template-export-info-box {
    background: #10b98114;
    border: 1px solid rgba(16, 185, 129, .22);
    border-radius: 6px;
    padding: 8px 10px
}

.template-export-info-row {
    display: flex;
    gap: 8px;
    align-items: flex-start
}

.template-export-filename-wrap {
    position: relative;
    display: flex;
    align-items: center
}

.template-export-filename-wrap input[type=text] {
    width: 100%;
    height: 32px;
    padding: 0 72px 0 10px;
    border-radius: 4px;
    background: #1a1a1a;
    color: #fff;
    border: 1px solid #444;
    box-sizing: border-box;
    font-size: 13px
}

.template-export-filename-wrap input[type=text]:focus {
    outline: none;
    border-color: var(--color-primary)
}

.template-export-suffix {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 12px;
    pointer-events: none
}

.template-export-filename-hint {
    font-size: 11px;
    line-height: 1.3;
    margin-top: 2px
}

.export-field-row input[type=range] {
    accent-color: var(--color-secondary);
    background: var(--color-muted-light)
}

.export-hidden {
    display: none !important
}

@media(max-width:1100px) {
    .export-modal-window {
        width: 96%;
        height: 92%
    }

    .export-modal-body {
        grid-template-columns: minmax(180px, 1fr) 2.7fr
    }

    .export-left-column,
    .export-right-column {
        min-width: 0
    }
}

@media(max-width:600px) {
    .export-modal-body {
        grid-template-columns: 1fr 2.7fr
    }
}

@media(max-width:768px), (pointer:coarse)and (max-width:1024px) {

    #media-export-popup .export-modal-window,
    #template-export-popup .export-modal-window {
        width: 90%;
        height: 96%;
        max-width: none;
        max-height: none;
        border: 1px solid #3a3a3a;
        border-radius: 12px;
        box-shadow: 0 10px 40px #00000080
    }

    #template-export-popup .template-export-window {
        height: auto;
        max-height: min(90%, 520px)
    }
}

@media(max-width:600px)and (orientation:portrait) {

    #media-export-popup .export-modal-body,
    #template-export-popup .export-modal-body {
        display: flex;
        flex-direction: column;
        overflow-y: auto
    }

    #media-export-popup .export-left-column,
    #template-export-popup .export-left-column {
        flex-direction: row;
        flex-shrink: 0;
        border-right: none;
        border-bottom: 1px solid #333;
        overflow: visible
    }

    #media-export-popup .media-export-card {
        flex: 1;
        padding: 12px
    }

    #media-export-popup .export-right-column,
    #template-export-popup .export-right-column {
        overflow: visible
    }
}

.mc-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #222
}

.mc-modal-title-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px
}

.mc-modal-title-icon {
    width: 18px;
    height: 18px;
    color: var(--color-primary-light)
}

.mc-modal-title {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .2px;
    text-decoration: none;
    border-bottom: none;
    padding-bottom: 0
}

#minecraft-model-modal .mc-modal-title {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    text-decoration: none !important
}

.mc-close-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center
}

.mc-close-btn:hover {
    background: #333;
    color: #fff
}

.mc-close-btn i {
    width: 16px;
    height: 16px
}

.mc-close-btn svg {
    width: 16px;
    height: 16px
}

#minecraft-model-modal svg {
    width: 12px !important;
    height: 12px !important
}

#minecraft-model-modal .mc-modal-header .mc-modal-title-icon {
    width: 18px !important;
    height: 18px !important
}

#minecraft-model-modal .mc-modal-header .mc-close-btn svg {
    width: 16px !important;
    height: 16px !important
}

.mc-tree-source-left svg,
.mc-tree-toggle svg {
    width: 12px !important;
    height: 12px !important
}

.mc-toolbar-license svg,
.mc-toolbar-input-wrap svg,
.mc-library-refresh-btn svg,
.mc-sync-pill svg,
.mc-btn-import svg,
.mc-search-bar svg {
    width: 12px !important;
    height: 12px !important
}

.mc-context-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 18px;
    border-bottom: 1px solid #3a3a3a;
    background: #1a1a1a
}

.mc-toolbar-left-controls {
    display: flex;
    align-items: center;
    gap: 12px
}

.mc-active-library-name {
    margin: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 600
}

.mc-toolbar-license {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid #3a3a3a;
    border-radius: 999px;
    padding: 4px 10px;
    cursor: pointer;
    transition: all .2s
}

.mc-toolbar-license:hover {
    background: #333;
    color: #fff;
    border-color: #555
}

#mc-license-content h3 {
    margin-bottom: 8px
}

.mc-toolbar-license i {
    width: 12px;
    height: 12px;
    color: var(--color-primary-light)
}

.mc-toolbar-online-controls {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-width: 0
}

.mc-toolbar-input-wrap {
    flex: 1;
    width: auto;
    max-width: 620px;
    min-width: 50px;
    height: 30px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    background: #111;
    padding: 0 8px
}

.mc-toolbar-input-wrap i {
    width: 12px;
    height: 12px;
    color: var(--text-dim)
}

.mc-toolbar-input-group {
    position: relative;
    flex: 1;
    display: flex;
    align-items: stretch;
    height: 30px;
    min-width: 100px
}

.mc-toolbar-input-wrap.joined-input {
    box-sizing: border-box;
    height: 100%;
    margin: 0;
    flex: 1;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important
}

.mc-repo-dropdown-btn.joined-btn {
    box-sizing: border-box;
    height: 100%;
    width: 30px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #222;
    color: var(--text-muted);
    cursor: pointer;
    border: 1px solid #3a3a3a;
    border-left: none !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px
}

.mc-repo-dropdown-btn.joined-btn i {
    width: 14px;
    height: 14px
}

.mc-repo-dropdown-btn:hover {
    background: #333 !important;
    color: #fff !important
}

.mc-repo-dropdown-btn:active {
    background: #444 !important
}

.mc-library-source-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: #e5e7eb;
    font-size: 12px;
    width: 0;
    min-width: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden
}

.mc-library-source-input::placeholder {
    color: var(--text-muted)
}

.mc-library-version {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0
}

.mc-library-version label {
    color: var(--text-muted);
    font-size: 12px
}

.mc-library-version select {
    height: 30px;
    min-width: 110px;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    background: #111;
    color: #e5e7eb;
    font-size: 11px;
    padding: 0 8px
}

.mc-library-refresh-btn {
    height: 30px;
    padding: 0 10px;
    border: none;
    border-radius: 6px;
    background: var(--color-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0
}

.mc-library-refresh-btn i {
    width: 12px;
    height: 12px
}

.mc-library-refresh-btn:disabled {
    opacity: .65;
    cursor: not-allowed
}

.mc-modal-body {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 280px 1fr
}

.mc-modal-content-area {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0
}

.mc-modal-main {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(340px, 1fr) minmax(320px, .9fr)
}

.mc-column {
    min-height: 0
}

.mc-tree-column {
    border-right: 1px solid #3a3a3a;
    background: #1a1a1a;
    padding: 10px 8px;
    overflow-y: auto
}

.mc-tree-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .65px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 10px
}

.mc-tree-import-btn {
    width: 100%;
    border: 1px solid color-mix(in srgb, var(--color-secondary) 68%, #1f2937);
    border-radius: 10px;
    background: color-mix(in srgb, var(--color-secondary) 22%, #111);
    color: #f5f3ff;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 10px
}

.mc-tree-import-btn:hover {
    background: color-mix(in srgb, var(--color-secondary) 34%, #111);
    border-color: color-mix(in srgb, var(--color-secondary-light) 78%, #1f2937)
}

.mc-tree-import-btn i {
    width: 14px;
    height: 14px
}

.mc-tree-source {
    border: 1px solid #333;
    border-radius: 10px;
    background: transparent;
    margin-bottom: 10px;
    overflow: hidden
}

.mc-tree-source.active {
    border-color: var(--color-primary)
}

.mc-tree-source-header {
    width: 100%;
    background: transparent;
    border: none;
    color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    cursor: pointer
}

.mc-tree-source-header:hover {
    background: #2b2b2b
}

.media-export-card {
    width: 100%;
    background: transparent;
    border: 1px solid #333;
    border-radius: 10px;
    color: #e5e7eb;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 16px;
    cursor: pointer;
    text-align: left;
    gap: 8px
}

.media-export-card:hover {
    background: #2b2b2b
}

.media-export-card.active {
    background: #2b2b2b;
    border-color: var(--color-primary)
}

.media-export-card strong {
    font-size: .95rem;
    font-weight: 700
}

.media-export-card p {
    margin: 0;
    color: var(--text-main);
    font-size: .85rem;
    line-height: 1.4
}

.mc-tree-source-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600
}

.mc-tree-source-left i,
.mc-tree-toggle {
    width: 14px;
    height: 14px
}

.mc-tree-source--no-toggle .mc-tree-toggle {
    display: none
}

.mc-tree-toggle {
    transition: transform .18s ease
}

.mc-tree-categories {
    padding: 6px;
    border-top: 1px solid #3a3a3a
}

.mc-tree-category,
.mc-tab {
    width: 100%;
    border: none;
    border-radius: 8px;
    padding: 8px 10px;
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    margin-bottom: 4px
}

.mc-tree-category:hover,
.mc-tab:hover {
    background: #2a2a2a;
    color: #e5e7eb
}

.mc-tree-category.active,
.mc-tab.active {
    background: var(--color-primary-dark);
    color: #fff
}

.mc-tree-category.active>span:first-child,
.mc-tab.active>span:first-child {
    color: #fff !important
}

.mc-tree-category.active .mc-count-badge,
.mc-tab.active .mc-count-badge {
    color: #fff;
    background: color-mix(in srgb, var(--color-primary) 35%, #333)
}

.mc-count-badge {
    min-width: 24px;
    text-align: center;
    border-radius: 999px;
    background: #333;
    color: #e5e7eb;
    font-size: 11px;
    padding: 2px 7px
}

.mc-list-column {
    border-right: 1px solid #3a3a3a;
    background: #1e1e1e;
    display: flex;
    flex-direction: column;
    min-height: 0;
    position: relative
}

.mc-search-header-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px
}

.mc-search-header-row .mc-search-bar {
    flex: 1;
    margin: 0
}

.mc-search-bar {
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    background: #111;
    height: 36px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px
}

.mc-search-bar i {
    width: 12px;
    height: 12px;
    color: var(--text-dim)
}

.mc-search-bar input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: #e5e7eb;
    font-size: 12px;
    min-height: 28px;
    padding: 4px 6px
}

.mc-sort-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    background: #111;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 1000;
    min-width: 140px;
    box-shadow: 0 4px 12px #00000080
}

.mc-sort-option {
    background: transparent;
    border: none;
    color: var(--text-dim);
    padding: 6px 8px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    outline: none
}

.mc-sort-option:hover:not(:disabled) {
    background: #222;
    color: var(--text-light)
}

.mc-sort-option.active {
    background: #2a2a2a;
    color: var(--color-primary-light)
}

.mc-sort-option:disabled {
    opacity: .5;
    cursor: not-allowed;
    font-style: italic
}

.mc-sort-option i {
    width: 14px;
    height: 14px
}

.mc-view-toggle-btn {
    background: #111;
    border: 1px solid #3a3a3a;
    color: var(--text-dim);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 8px;
    outline: none;
    transition: none
}

.mc-view-toggle-btn:hover {
    color: var(--text-normal);
    border-color: #4a4a4a;
    background: #222
}

.mc-view-toggle-btn svg,
.mc-view-toggle-btn i {
    width: 16px;
    height: 16px;
    stroke-width: 3px
}

.mc-my-library-drop-indicator {
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--color-primary) 22%, transparent);
    border: 4px dashed var(--color-primary);
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 20
}

.mc-my-library-drop-indicator h2 {
    margin: 0;
    color: var(--color-primary-light);
    font-size: 28px;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
    letter-spacing: .02em
}

.mc-list-column.mc-my-library-drop-active .mc-my-library-drop-indicator {
    display: flex
}

.mc-model-list {
    overflow-y: auto;
    padding-bottom: 12px
}

.mc-model-list.grid-view {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    padding: 10px
}

.mc-model-list.grid-view .mc-model-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 14px 8px 12px;
    min-height: 115px;
    box-sizing: border-box;
    background: #181818;
    transition: none
}

.mc-model-list.grid-view .mc-model-item:hover {
    border-color: #4a4a4a;
    background: #262626
}

.mc-model-list.grid-view .mc-model-item.selected {
    border-color: var(--color-primary);
    background: var(--color-primary-dark)
}

.mc-model-list.grid-view .mc-model-item .mc-item-icon-box {
    position: relative;
    margin-right: 0;
    margin-top: 0;
    margin-bottom: 8px;
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    max-width: 52px;
    max-height: 52px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px
}

.mc-model-list.grid-view .mc-model-item .mc-item-icon-box i,
.mc-model-list.grid-view .mc-model-item .mc-item-icon-box svg {
    width: 30px !important;
    height: 30px !important
}

.mc-thumb-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #00000073;
    border-radius: inherit;
    color: var(--color-primary-light);
    z-index: 4
}

.mc-spin-icon {
    width: 14px;
    height: 14px;
    animation: spin .9s linear infinite
}

.mc-grid-thumb-img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: inherit;
    display: block;
    margin: auto
}

.mc-pixelated-thumb,
.mc-grid-thumb-img.mc-pixelated-thumb,
.mc-detail-thumbnail.mc-pixelated-thumb {
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    -ms-interpolation-mode: nearest-neighbor
}

.mc-item-icon-box.has-thumbnail {
    background: transparent;
    border: none
}

.mc-model-list.grid-view .mc-model-item .mc-item-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 0;
    padding: 0 4px;
    box-sizing: border-box
}

.mc-model-list.grid-view .mc-model-item .mc-item-meta {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    width: 100%
}

.mc-model-list.grid-view .mc-model-item h4 {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    margin: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    display: block;
    box-sizing: border-box
}

.mc-model-list.grid-view .mc-model-item .mc-name-wrapper {
    display: inline-flex;
    max-width: 100%;
    justify-content: center;
    vertical-align: middle;
    white-space: nowrap
}

.mc-model-list.grid-view .mc-model-item .mc-name-base {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 0 1 auto
}

.mc-model-list.grid-view .mc-model-item .mc-name-ext {
    white-space: nowrap;
    flex-shrink: 0;
    color: var(--text-muted, #9ca3af)
}

.mc-model-list.grid-view .mc-model-item:hover h4.is-marquee-active,
.mc-model-list.grid-view .mc-model-item.selected h4.is-marquee-active {
    text-overflow: clip;
    overflow: hidden;
    text-align: left
}

.mc-model-list.grid-view .mc-model-item:hover h4.is-marquee-active .mc-name-wrapper,
.mc-model-list.grid-view .mc-model-item.selected h4.is-marquee-active .mc-name-wrapper {
    display: inline-flex;
    max-width: none;
    justify-content: flex-start;
    will-change: transform;
    animation: marqueeScroll var(--marquee-duration, 3s) cubic-bezier(.45, .05, .55, .95) infinite alternate
}

.mc-model-list.grid-view .mc-model-item:hover h4.is-marquee-active .mc-name-base,
.mc-model-list.grid-view .mc-model-item.selected h4.is-marquee-active .mc-name-base {
    overflow: visible;
    text-overflow: clip;
    flex: 0 0 auto
}

.mc-model-list.grid-view .mc-model-item p,
.mc-model-list.grid-view .mc-model-item .mc-item-tags {
    display: none !important
}

.mc-model-list.grid-view .mc-model-item .mc-item-variant-badge {
    position: static;
    transform: none;
    margin: 2px auto 0;
    font-size: 9px;
    padding: 1px 6px;
    border-radius: 999px;
    background: #282828;
    color: #e5e7eb;
    border: 1px solid #3d3d3d;
    white-space: nowrap;
    z-index: 1;
    display: inline-block
}

.mc-model-list.grid-view .mc-model-item .mc-item-actions {
    display: contents
}

.mc-model-list.grid-view .mc-model-item .mc-item-delete-cache-btn,
.mc-model-list.grid-view .mc-model-item .mc-remote-delete-cache-btn,
.mc-model-list.grid-view .mc-model-item .mc-remote-cache-btn {
    position: absolute;
    inset: 5px 5px auto auto;
    margin: 0;
    z-index: 5
}

.mc-model-list.grid-view .mc-model-item .mc-item-dependency-alert,
.mc-model-list.grid-view .mc-model-item .mc-item-cached-alert {
    position: absolute;
    inset: 5px auto auto 5px;
    margin: 0;
    z-index: 5
}

.mc-no-results {
    margin: auto;
    text-align: center;
    color: var(--text-dim)
}

.mc-no-results i {
    width: 30px;
    height: 30px
}

.mc-model-item {
    padding: 8px 12px;
    border-top: 1px solid #2a2a2a;
    border-bottom: 1px solid transparent;
    cursor: pointer
}

.mc-model-item:hover {
    background: #2a2a2a
}

.mc-model-item.selected {
    background: var(--color-primary-dark)
}

.mc-model-item h4 {
    margin: 0;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative
}

.mc-model-item .mc-name-wrapper {
    display: inline-flex;
    max-width: 100%;
    min-width: 0;
    vertical-align: middle;
    white-space: nowrap
}

.mc-model-item .mc-name-base {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 0 1 auto
}

.mc-model-item .mc-name-ext {
    white-space: nowrap;
    flex-shrink: 0;
    color: var(--text-muted, #9ca3af)
}

.mc-model-item:hover h4.is-marquee-active,
.mc-model-item.selected h4.is-marquee-active {
    text-overflow: clip;
    overflow: hidden
}

.mc-model-item:hover h4.is-marquee-active .mc-name-wrapper,
.mc-model-item.selected h4.is-marquee-active .mc-name-wrapper {
    display: inline-flex;
    max-width: none;
    will-change: transform;
    animation: marqueeScroll var(--marquee-duration, 3s) cubic-bezier(.45, .05, .55, .95) infinite alternate
}

.mc-model-item:hover h4.is-marquee-active .mc-name-base,
.mc-model-item.selected h4.is-marquee-active .mc-name-base {
    overflow: visible;
    text-overflow: clip;
    flex: 0 0 auto
}

.mc-model-item p {
    margin: 3px 0 0;
    color: var(--text-muted);
    font-size: 10px
}

.mc-item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0
}

.mc-item-variant-badge {
    padding: 2px 8px;
    border-radius: 999px;
    background: #333;
    color: #e5e7eb;
    font-size: 10px;
    white-space: nowrap
}

.mc-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 5px
}

.mc-item-tag {
    display: inline-flex;
    align-items: center;
    padding: 1px 7px;
    border-radius: 999px;
    border: 1px solid #3b3b3b;
    background: #242424;
    color: #d1d5db;
    font-size: 10px;
    line-height: 1.3;
    white-space: nowrap
}

.mc-item-icon-box {
    position: relative;
    overflow: hidden;
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    transition: all .2s;
    background: #111;
    border: 1px solid transparent
}

#minecraft-model-modal .mc-item-icon-box i,
#minecraft-model-modal .mc-item-icon-box svg {
    width: 24px !important;
    height: 24px !important
}

.mc-item-icon-box--character {
    border-color: #10b981;
    color: #10b981
}

.mc-item-icon-box--light {
    border-color: #fbbf24;
    color: #fbbf24
}

.mc-item-icon-box--camera {
    border-color: #60a5fa;
    color: #60a5fa
}

.mc-item-icon-box--audio {
    border-color: #ef4444;
    color: #ef4444
}

.mc-item-icon-box--shape {
    border-color: #34d399;
    color: #34d399
}

.mc-item-icon-box--text {
    border-color: #fff;
    color: #fff
}

.mc-item-icon-box--environment {
    border-color: #a3e635;
    color: #a3e635
}

.mc-item-icon-box--import {
    border-color: #f97316;
    color: #f97316
}

.mc-model-item.selected .mc-item-icon-box {
    background: var(--color-primary);
    border-color: #fff;
    color: #fff
}

.mc-model-item.selected .mc-item-variant-badge {
    background: #fff3;
    color: #fff
}

.mc-model-item.selected .mc-item-tag {
    border-color: #ffffff59;
    background: #ffffff29;
    color: #fff
}

.mc-model-item {
    padding: 8px 12px;
    border-top: 1px solid #2a2a2a;
    border-bottom: 1px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center
}

.mc-item-content {
    flex: 1;
    min-width: 0
}

.mc-item-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px
}

.mc-item-dependency-alert {
    width: 20px;
    height: 20px;
    color: var(--color-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: .95
}

.mc-item-dependency-alert i,
.mc-item-dependency-alert svg {
    width: 14px;
    height: 14px
}

.mc-item-cached-alert {
    width: 20px;
    height: 20px;
    color: #4ade80;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: .95
}

.mc-item-cached-alert i,
.mc-item-cached-alert svg {
    width: 14px;
    height: 14px
}

.mc-item-delete-cache-btn,
.mc-remote-delete-cache-btn,
.mc-remote-cache-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity .1s ease, background .1s ease;
    opacity: .9;
    flex: 0 0 28px
}

.mc-item-delete-cache-btn,
.mc-remote-delete-cache-btn {
    background: var(--color-danger)
}

.mc-item-delete-cache-btn:hover,
.mc-remote-delete-cache-btn:hover {
    opacity: 1;
    background: var(--color-danger-dark)
}

.mc-remote-cache-btn {
    background: #242424;
    border: 1px solid #3b3b3b;
    color: #d1d5db
}

.mc-remote-cache-btn:hover {
    opacity: 1;
    background: #333;
    border-color: #4a4a4a;
    color: #fff
}

.mc-model-item.selected .mc-remote-cache-btn {
    border-color: #ffffff59;
    background: #ffffff29;
    color: #fff
}

.mc-model-item.selected .mc-remote-cache-btn:hover {
    background: #ffffff40
}

.mc-item-delete-cache-btn i,
.mc-item-delete-cache-btn svg,
.mc-remote-delete-cache-btn i,
.mc-remote-delete-cache-btn svg,
.mc-remote-cache-btn i,
.mc-remote-cache-btn svg {
    width: 14px;
    height: 14px
}

.mc-inspector-column {
    position: relative;
    overflow-y: auto;
    background: #111
}

.mc-empty-selection {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-dim)
}

.mc-empty-selection i {
    width: 42px;
    height: 42px;
    margin-bottom: 12px
}

.mc-detail-panel {
    padding: 14px 16px
}

.mc-detail-hero {
    border-bottom: 1px solid #3a3a3a;
    padding-bottom: 10px;
    margin-bottom: 12px
}

.mc-detail-hero h3 {
    margin: 0;
    font-size: 18px;
    color: #fff;
    font-weight: 600
}

.mc-detail-section h4,
.mc-detail-info-card h4 {
    margin: 0 0 10px;
    color: #e5e7eb;
    font-size: 12px;
    letter-spacing: .5px;
    text-transform: uppercase
}

.mc-detail-section {
    margin-top: 2px
}

.mc-state-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    align-items: center;
    gap: 10px
}

.mc-state-row--stacked {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 6px
}

.mc-state-row--stacked label {
    margin-bottom: 2px
}

.mc-state-row label {
    font-size: 12px;
    color: var(--text-muted)
}

.mc-state-row select {
    height: 28px;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    background: #1a1a1a;
    color: #e5e7eb;
    font-size: 11px;
    padding: 0 8px
}

.mc-state-row--checkbox-left {
    grid-template-columns: auto 1fr;
    gap: 8px
}

.mc-state-row--checkbox-left input[type=checkbox] {
    width: 14px;
    height: 14px;
    margin: 0;
    cursor: pointer
}

.mc-state-row--checkbox-left label {
    margin: 0;
    font-size: 11px;
    color: var(--text-muted);
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none
}

.mc-skin-control-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%
}

.mc-skin-thumb {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid #3a3a3a;
    background-color: #1a1a1a;
    background-image: linear-gradient(45deg, #2b2b2b 25%, transparent 25%), linear-gradient(-45deg, #2b2b2b 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #2b2b2b 75%), linear-gradient(-45deg, transparent 75%, #2b2b2b 75%);
    background-size: 8px 8px;
    background-position: 0 0, 0 4px, 4px -4px, -4px 0;
    flex: 0 0 28px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center
}

.mc-skin-thumb i,
.mc-skin-thumb svg {
    width: 14px;
    height: 14px;
    color: #ffffff40;
    pointer-events: none
}

.mc-skin-thumb.has-image {
    background-size: cover;
    background-position: center;
    image-rendering: pixelated
}

.mc-skin-thumb.has-image i,
.mc-skin-thumb.has-image svg {
    display: none
}

.mc-skin-control-wrap .custom-dropdown,
.mc-skin-control-wrap select {
    flex: 1
}

.mc-detail-info-card {
    margin-top: 14px;
    background: #1e1e1e;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    padding: 10px
}

.mc-detail-info {
    font-family: JetBrains Mono, Consolas, monospace;
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.55
}

.mc-obj-dependency-card {
    margin-top: 10px;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    background: #141414;
    padding: 8px
}

.mc-obj-dependency-card h5 {
    margin: 0 0 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #d4d4d4
}

.mc-obj-dependency-summary {
    font-size: 10px;
    color: #9ca3af;
    margin-bottom: 6px
}

.mc-obj-dependency-list {
    display: flex;
    flex-direction: column;
    gap: 4px
}

.mc-obj-dependency-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 10px;
    border: 1px solid #303030;
    border-radius: 6px;
    padding: 6px;
    color: #9ca3af;
    transition: border-color .15s ease, background-color .15s ease
}

.mc-obj-dependency-row.is-missing {
    color: #f87171;
    border-color: #5a3131
}

.mc-obj-dependency-row.is-resolved {
    color: #34d399;
    border-color: #1f5e45
}

.mc-obj-dependency-row.is-resolved .mc-obj-dependency-state {
    color: #6ee7b7
}

.mc-obj-dependency-row.is-drop-active,
.mc-obj-dependency-dropzone.is-drop-active {
    border-color: var(--color-secondary)
}

#project-missing-list.is-drop-active {
    outline: 2px dashed var(--color-secondary);
    outline-offset: 4px;
    border-radius: 6px
}

.mc-obj-dependency-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px
}

.mc-obj-dependency-name {
    color: #d1d5db;
    font-size: 11px
}

.mc-obj-dependency-state {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: #9ca3af
}

.mc-obj-dependency-row.is-missing .mc-obj-dependency-state {
    color: #fca5a5
}

.mc-obj-dependency-upload-btn,
.mc-obj-dependency-dropzone {
    border: 1px dashed #4b5563;
    border-radius: 6px;
    background: #121212;
    color: #cbd5e1;
    height: 30px;
    width: 100%;
    font-size: 10px;
    letter-spacing: .2px;
    cursor: pointer
}

.mc-obj-dependency-dropzone {
    margin-bottom: 8px
}

.mc-obj-dependency-upload-btn:hover,
.mc-obj-dependency-dropzone:hover {
    border-color: var(--color-secondary);
    color: #fff7cc
}

.mc-obj-dependency-ok-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 2px 8px;
    background: color-mix(in srgb, #22c55e 20%, #111);
    color: #86efac;
    font-size: 10px
}

.mc-obj-dependency-ok-pill--missing {
    background: color-mix(in srgb, #ef4444 20%, #111);
    color: #fca5a5
}

.mc-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    padding: 12px 18px;
    border-top: 1px solid #3a3a3a;
    background: #1e1e1e;
    font-size: 12px
}

.mc-footer-status {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted)
}

.mc-sync-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4ade80
}

.mc-sync-pill i {
    width: 12px;
    height: 12px
}

.mc-footer-actions {
    display: flex;
    gap: 10px
}

.mc-btn-cancel {
    height: 32px;
    padding: 0 14px;
    border: 1px solid #444;
    border-radius: 6px;
    background: #2a2a2a;
    color: #e5e7eb;
    font-weight: 600;
    font-size: 11px;
    cursor: pointer
}

.mc-btn-cancel,
.mc-btn-import {
    text-decoration: none
}

.mc-btn-cancel:hover {
    background: #333
}

.mc-btn-import {
    height: 32px;
    padding: 0 14px;
    border: none;
    border-radius: 6px;
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
    font-size: 11px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: center
}

.mc-btn-import i {
    width: 12px;
    height: 12px
}

.mc-btn-import:disabled {
    background: #444;
    color: var(--text-dim);
    cursor: not-allowed
}

.mc-btn-import.mc-btn-danger {
    background: var(--color-danger)
}

.mc-btn-import.mc-btn-danger:hover {
    background: var(--color-danger-dark)
}

@media(max-width:1100px) {
    .mc-modal-window {
        width: 90%;
        height: 96%
    }

    .settings-modal-window {
        width: min(90%, 720px);
        height: 96%
    }

    .export-modal-window {
        width: min(90%, 800px)
    }

    .mc-modal-body {
        grid-template-columns: minmax(180px, 1fr) 2.7fr
    }

    .mc-modal-main {
        grid-template-columns: minmax(200px, 1.5fr) minmax(200px, 1.2fr)
    }

    .mc-context-toolbar {
        flex-wrap: wrap;
        padding: 10px 14px;
        gap: 8px
    }

    .mc-toolbar-online-controls {
        width: 100%;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 6px
    }

    .mc-toolbar-input-wrap {
        min-width: 50px;
        flex: 1 1 0%;
        width: auto
    }

    .mc-modal-footer {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 14px;
        gap: 10px
    }

    .mc-footer-status {
        flex-wrap: wrap
    }
}

@media(max-width:600px) {
    .mc-modal-body {
        grid-template-columns: 1fr 2.7fr
    }

    .mc-modal-main {
        grid-template-columns: 1.5fr 1.2fr
    }

    .mc-footer-actions {
        width: 100%;
        justify-content: flex-end
    }
}

.outliner-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-right: 4px;
    cursor: pointer;
    color: inherit;
    transition: transform .2s
}

.outliner-toggle:hover {
    color: inherit
}

.outliner-toggle-spacer {
    display: inline-block;
    width: 14px;
    margin-right: 4px
}

.outliner-visibility-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-right: 4px;
    cursor: pointer;
    color: inherit;
    transition: color .2s
}

.outliner-visibility-toggle:hover {
    color: inherit
}

.outliner-lock-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-right: 4px;
    cursor: pointer;
    color: inherit;
    transition: color .2s
}

.outliner-lock-toggle:hover {
    color: inherit
}

.outliner-lock-toggle.locked {
    color: var(--color-primary-light)
}

.outliner-mute-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-right: 4px;
    cursor: pointer;
    color: inherit;
    transition: color .2s
}

.outliner-mute-toggle:hover {
    color: #fff
}

.outliner-mute-toggle.muted {
    color: #ef4444
}

.outliner-select-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-right: 4px;
    cursor: pointer;
    color: inherit;
    transition: color .2s
}

.outliner-select-toggle:hover {
    color: var(--color-primary-light)
}

.export-progress-popup {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: #141414;
    z-index: 10001;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px;
    padding-top: calc(24px + env(safe-area-inset-top, 0px));
    padding-right: calc(24px + env(safe-area-inset-right, 0px));
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    padding-left: calc(24px + env(safe-area-inset-left, 0px));
    box-sizing: border-box;
    overflow: hidden
}

.export-progress-popup[style*="display: flex"] {
    display: flex !important
}

.export-fullscreen-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 520px;
    gap: 14px;
    box-sizing: border-box
}

.export-preview-wrapper {
    background-color: #000;
    border: 1px solid #303030;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    height: auto;
    max-width: 75vw;
    max-height: 44vh;
    box-shadow: 0 10px 32px #0009
}

.export-preview-canvas {
    display: block;
    max-width: 100%;
    max-height: 44vh;
    width: auto;
    height: auto;
    object-fit: contain
}

.export-progress-details {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px
}

.export-status-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    width: 100%
}

.export-status-text {
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.export-time-text {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    flex-shrink: 0
}

.export-progress-container {
    width: 100%
}

.export-progress-bg {
    background-color: #222;
    border: 1px solid #333333;
    border-radius: 6px;
    overflow: hidden;
    height: 22px;
    position: relative;
    box-sizing: border-box
}

.export-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    width: 0%;
    transition: width .15s ease-out;
    border-radius: 5px
}

.export-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: 700;
    font-size: 11.5px;
    font-family: JetBrains Mono, monospace;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .9);
    pointer-events: none;
    letter-spacing: .3px
}

.export-tip-plain-text {
    width: 100%;
    background: transparent;
    border: none;
    padding: 2px 0;
    box-sizing: border-box;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
    color: var(--text-muted);
    transition: opacity .25s ease
}

.export-tip-plain-text.is-warning {
    color: var(--color-secondary, #f2c703)
}

.export-tip-plain-text.fade-out {
    opacity: 0
}

.export-warning-icon {
    width: 14px;
    height: 14px;
    color: var(--color-secondary, #f2c703);
    flex-shrink: 0
}

.export-tip-label {
    font-weight: 600;
    color: var(--color-primary-light);
    flex-shrink: 0
}

.export-tip-text {
    color: var(--text-muted)
}

.export-actions-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 2px
}

.export-donate-btn {
    height: 34px;
    padding: 0 20px;
    border: 1px solid #3e3e3e;
    border-radius: 6px;
    background: #242424;
    color: #e5e7eb;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center
}

.export-donate-btn:hover {
    background: #2e2e2e;
    border-color: #555;
    color: #fff
}

.export-cancel-btn {
    height: 34px;
    padding: 0 24px;
    border: 1px solid #3e3e3e;
    border-radius: 6px;
    background: #242424;
    color: #e5e7eb;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s ease
}

.export-cancel-btn:hover {
    background: #2e2e2e;
    border-color: #555;
    color: #fff
}

.export-cancel-btn.export-complete-btn {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff
}

.export-cancel-btn.export-complete-btn:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark)
}

@media(max-height:600px) {
    .export-fullscreen-content {
        gap: 8px
    }

    .export-preview-wrapper {
        max-height: 38vh
    }

    .export-progress-bg {
        height: 20px
    }

    .export-progress-text {
        font-size: 10.5px
    }

    .export-tip-plain-text {
        min-height: 30px;
        font-size: 11px
    }

    .export-donate-btn,
    .export-cancel-btn {
        height: 30px;
        font-size: 11px
    }
}

.custom-color-picker-popup {
    position: fixed;
    z-index: 100002;
    background-color: #242424;
    border: 1px solid #383838;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 10px 25px #0000008c;
    width: 260px;
    display: none;
    flex-direction: column;
    gap: 10px;
    -webkit-user-select: none;
    user-select: none;
    font-family: inherit
}

.custom-color-picker-popup.visible {
    display: flex
}

.ccp-sv-area {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: red;
    cursor: crosshair;
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px #ffffff1a;
    touch-action: none
}

.ccp-sv-white {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #fff, #fff0)
}

.ccp-sv-black {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #000, #0000)
}

.ccp-sv-cursor {
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 4px #0009;
    pointer-events: none
}

.ccp-hue-strip {
    position: relative;
    width: 100%;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(to right, red, #ff0 17%, #0f0 33%, #0ff, #00f 67%, #f0f 83%, red);
    cursor: ew-resize;
    box-shadow: inset 0 0 0 1px #ffffff1a;
    touch-action: none
}

.ccp-hue-cursor {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: #fff;
    border-radius: 50%;
    transform: translate(-50%, -1px);
    box-shadow: 0 1px 4px #0000008c;
    pointer-events: none
}

.ccp-mode-buttons {
    display: flex;
    background-color: #1a1a1a;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px #383838
}

.ccp-mode-buttons button {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 7px 0;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer
}

.ccp-mode-buttons button.active {
    background-color: var(--color-primary-dark);
    color: #fff
}

.ccp-input-group {
    display: none;
    gap: 6px
}

.ccp-input-group.active {
    display: flex
}

.ccp-input-wrapper {
    display: flex;
    align-items: center;
    background-color: #1a1a1a;
    border: 1px solid #383838;
    border-radius: 6px;
    padding: 0 6px;
    flex: 1
}

.ccp-input-wrapper span {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    margin-right: 4px
}

.ccp-input-wrapper input {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    padding: 7px 0;
    font-size: 12px;
    font-family: monospace;
    outline: none;
    text-align: center;
    min-width: 0
}

.ccp-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #27272a;
    border: 1px solid #3f3f46;
    color: #a1a1aa;
    padding: 5px;
    border-radius: 6px;
    cursor: pointer;
    transition: all .2s;
    width: 28px;
    min-width: 28px;
    height: 28px
}

.ccp-icon-btn:hover {
    background-color: #3f3f46;
    color: #fff
}

.ccp-icon-btn:disabled {
    opacity: .4;
    cursor: default;
    pointer-events: none
}

.ccp-icon-btn i {
    width: 16px;
    height: 16px
}

.ccp-actions {
    display: flex;
    gap: 6px
}

.ccp-actions button {
    padding: 7px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px
}

.ccp-actions button i {
    width: 14px;
    height: 14px
}

.ccp-btn-eyedrop {
    width: 34px;
    min-width: 34px;
    background-color: var(--color-muted-dark);
    color: #fff
}

.ccp-btn-ok {
    flex: 1;
    min-width: 0;
    background-color: var(--color-primary);
    color: #fff
}

body.mobile-control-enabled .sidebar-section-content input[type=range],
body.mobile-control-enabled .nested-props-container input[type=range],
body.mobile-control-enabled .export-field-row input[type=range] {
    display: none !important
}

body.mobile-control-enabled .modern-slider-row.slider-group,
body.mobile-control-enabled .export-field-row:has(input[type=range]) {
    margin-bottom: 8px !important
}

.mobile-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100002;
    display: none;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none
}

.mobile-popup.show {
    display: flex
}

.mobile-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0006;
    pointer-events: auto
}

.mobile-popup-content {
    position: relative;
    background: #1c1c1c;
    border: 1px solid #3f3f46;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 10px 25px #00000080;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 16px;
    white-space: nowrap;
    margin-bottom: 20px;
    width: 80%;
    transform: translateY(100%);
    opacity: 0;
    transition: transform .2s ease-out, opacity .2s ease-out
}

.mobile-popup.show .mobile-popup-content {
    transform: translateY(0);
    opacity: 1
}

.mobile-popup.center {
    align-items: center
}

.mobile-popup.center .mobile-popup-content {
    margin-bottom: 0
}

.mobile-popup-main-control {
    flex: 1;
    min-width: 0
}

.mobile-popup-control-wrapper {
    width: 100%;
    padding: 0 8px
}

.mobile-popup-range {
    -webkit-appearance: none;
    width: 100%;
    height: 4px !important;
    background: var(--color-muted-light) !important;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    margin: 0 !important;
    display: block !important
}

.mobile-popup-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #eab308;
    cursor: pointer;
    border: 2px solid #1c1c1c;
    box-shadow: 0 0 4px #00000080
}

.mobile-popup-dial {
    position: relative;
    width: 100%;
    height: 32px;
    background-color: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    cursor: ew-resize;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 20%, black 80%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, black 20%, black 80%, transparent 100%);
    border: 1px solid #3f3f46
}

.mobile-popup-dial-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(90deg, transparent, transparent 10px, #71717a 10px, #71717a 12px);
    background-size: 100% 12px;
    background-position: center;
    background-repeat: repeat-x
}

.mobile-popup-dial-center {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #eab308;
    transform: translate(-50%);
    z-index: 10;
    box-shadow: 0 0 4px #00000080
}

.mobile-popup-number-control {
    display: flex;
    align-items: center;
    background-color: #27272a;
    border-radius: 6px;
    overflow: hidden;
    height: 36px;
    border: 1px solid #3f3f46;
    flex-shrink: 0
}

.mobile-popup-math-btn {
    background: none;
    border: none;
    color: #a1a1aa;
    padding: 0 12px;
    height: 100%;
    cursor: pointer;
    transition: color .2s, background-color .2s;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center
}

input[type=number].mobile-popup-num-input {
    width: 100px;
    height: 100%;
    background: #1c1c1c;
    border: none;
    border-left: 1px solid #3f3f46;
    border-right: 1px solid #3f3f46;
    border-radius: 0;
    color: #fff;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    font-family: JetBrains Mono, monospace;
    outline: none
}

.mobile-popup-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0
}

.mobile-popup-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #27272a;
    border: 1px solid #3f3f46;
    color: #a1a1aa;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all .2s
}

.mobile-popup-icon-btn:disabled {
    opacity: .4;
    cursor: default;
    pointer-events: none
}

.mobile-popup-ok-btn {
    background-color: #9b59b5;
    color: #fff;
    border: none;
    padding: 0 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    margin-left: 4px;
    transition: opacity .2s;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center
}

@media(max-width:480px) {
    .mobile-popup-content {
        flex-wrap: wrap;
        justify-content: center;
        width: 80%
    }

    .mobile-popup-main-control {
        width: 100%;
        order: 1
    }

    .mobile-popup-number-control {
        order: 2
    }

    .mobile-popup-actions {
        order: 3
    }
}

.viewport-debug-overlay {
    position: absolute;
    bottom: 15px;
    left: 15px;
    z-index: 490;
    min-width: 170px;
    background: #00000080;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 6px;
    padding: 6px 8px;
    box-shadow: 0 6px 20px #0006;
    font-family: Consolas, Courier New, Courier, monospace;
    font-size: 10px;
    color: #e0e0e0;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
    transition: opacity .2s ease-in-out
}

.viewport-debug-overlay .debug-content {
    display: flex;
    flex-direction: column;
    gap: 3px
}

.viewport-debug-overlay .debug-actions {
    position: absolute;
    top: 4px;
    right: 6px;
    display: flex;
    align-items: center;
    gap: 7px;
    pointer-events: auto
}

.viewport-debug-overlay .debug-action-btn {
    background: none;
    border: none;
    color: #888;
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    line-height: 1
}

.viewport-debug-overlay .debug-action-btn:hover {
    color: #fff
}

.viewport-debug-overlay #debug-overlay-close {
    font-size: 12px
}

.viewport-debug-overlay .debug-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px
}

.viewport-debug-overlay .debug-label {
    color: #888
}

.viewport-debug-overlay .debug-val {
    color: #f0f0f0;
    font-weight: 600;
    text-align: right
}

.viewport-debug-overlay .debug-divider {
    height: 1px;
    background: #ffffff14;
    margin: 2px 0
}

@media(max-width:768px) {
    .viewport-debug-overlay {
        bottom: 12px;
        left: 12px;
        padding: 5px 6px;
        min-width: 140px;
        font-size: 9px
    }
}

#walk-touch-controls {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 10001;
    --walk-frac: 9;
    --walk-unit: calc(100vh / var(--walk-frac));
    --walk-unit: calc(100svh / var(--walk-frac));
    --walk-dpad-scale: 1;
    --walk-side-scale: 1;
    --walk-dpad-x: 4vw;
    --walk-dpad-x: 4svw;
    --walk-dpad-y: 4vh;
    --walk-dpad-y: 4svh;
    --walk-side-x: 4vw;
    --walk-side-x: 4svw;
    --walk-side-y: 4vh;
    --walk-side-y: 4svh
}

@media(pointer:coarse)and (min-width:769px) {
    #walk-touch-controls {
        --walk-frac: 12
    }
}

.walk-dpad-container {
    position: fixed;
    left: calc(var(--walk-dpad-x) + env(safe-area-inset-left, 0px));
    bottom: calc(var(--walk-dpad-y) + env(safe-area-inset-bottom, 0px));
    width: calc(var(--walk-unit) * 3 * var(--walk-dpad-scale));
    height: calc(var(--walk-unit) * 3 * var(--walk-dpad-scale));
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: calc(var(--walk-unit) * .12 * var(--walk-dpad-scale));
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none
}

.walk-touch-btn {
    background: #1e1e1ec7;
    border: 1px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #e5e7eb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    outline: none;
    transition: background .15s, transform .1s, border-color .15s;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    touch-action: none;
    padding: 0
}

.walk-touch-btn:not(#walk-touch-sprint):active,
.walk-touch-btn.pressed {
    background: var(--color-primary);
    border-color: var(--color-primary-light);
    color: #fff;
    transform: scale(.92)
}

.walk-touch-btn svg,
.walk-touch-btn i {
    width: 42%;
    height: 42%;
    pointer-events: none
}

.dpad-btn {
    width: 100%;
    height: 100%;
    border-radius: 18%
}

.dpad-up {
    grid-column: 2;
    grid-row: 1
}

.dpad-down {
    grid-column: 2;
    grid-row: 3
}

.dpad-left {
    grid-column: 1;
    grid-row: 2
}

.dpad-right {
    grid-column: 3;
    grid-row: 2
}

.dpad-center {
    grid-column: 2;
    grid-row: 2;
    background: #14141480;
    border-radius: 18%;
    pointer-events: none
}

.walk-elevation-container {
    position: fixed;
    right: calc(var(--walk-side-x) + env(safe-area-inset-right, 0px));
    bottom: calc(var(--walk-side-y) + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    gap: calc(var(--walk-unit) * .15 * var(--walk-side-scale));
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none
}

.elev-btn {
    position: relative;
    width: calc(var(--walk-unit) * .9 * var(--walk-side-scale));
    height: calc(var(--walk-unit) * .9 * var(--walk-side-scale));
    border-radius: 20%
}

.mc-remote-cache-actions,
.mc-remote-cache-btn,
.mc-remote-delete-cache-btn,
[data-source="mineimator"],
#mc-tree-categories-mineimator,
#mc-online-controls {
    display: none !important
}


/* Hapus semua jenis transition animation saat hover elemen */
button,
a,
[role="button"],
.toolbar-btn,
.sidebar-tab,
.main-menu-card,
.main-menu-card-delete,
.main-menu-tab-btn,
.main-menu-expand-toggle,
.online-tag-chip,
.project-tag-pill,
.sidebar-section-header,
.property-group-header,
.loop-template-item,
.toast-action-btn,
.toast-close,
.color-swatch-box,
.custom-dropdown-trigger,
.custom-dropdown-item,
.outliner-item,
.keyframe,
.mc-model-item,
.mc-tab,
.mc-tree-source-header,
.mc-btn-import,
.mc-btn-back,
.mc-btn-cancel,
.mc-toolbar-license,
.mc-sort-option,
.export-donate-btn,
.export-cancel-btn,
.ccp-icon-btn,
.walk-touch-btn,
.mobile-popup-math-btn,
.mobile-popup-icon-btn,
.mobile-popup-ok-btn,
.panel-header-icon-btn,
.outliner-controls button,
.small-btn,
.small-toolbar-btn,
.timeline-btn,
.viewport-btn {
    transition: none !important;
}

*:hover,
*:hover *,
*:hover::before,
*:hover::after,
*:hover *::before,
*:hover *::after {
    transition: none !important;
    animation: none !important;
}