.scene-workshop-body {
    --scene-header-height: 98px;
    background: #fff;
    color: #1b1b1b;
    font-family: "PingFang SC", "Noto Sans SC", Helvetica, Tahoma, Arial, "Microsoft YaHei", "微软雅黑", sans-serif;
    overflow-x: hidden;
    padding-top: var(--scene-header-height);
}

.scene-site .header {
    border-bottom: 1px solid #e7e7e7;
    background: #fff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 80;
}

.scene-shell {
    display: grid;
    grid-template-columns: 244px minmax(0, 1fr);
    min-height: calc(100dvh - var(--scene-header-height));
    background: #fff;
}

.scene-sidebar {
    grid-column: 1;
    position: fixed;
    left: 0;
    top: var(--scene-header-height);
    bottom: auto;
    z-index: 60;
    align-self: start;
    width: 244px;
    height: calc(100dvh - var(--scene-header-height));
    min-height: calc(100dvh - var(--scene-header-height));
    box-sizing: border-box;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 26px 24px 24px;
    background: #fff;
    border-right: 1px solid #ececec;
    scrollbar-width: none;
    display: flex;
    flex-direction: column;
}

.scene-sidebar::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.scene-brand {
    margin-bottom: 28px;
}

.scene-brand-title {
    font-size: 18px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: 0;
}

.scene-brand-subtitle {
    margin-top: 6px;
    color: #7b7f86;
    font-size: 12px;
    font-weight: 300;
}

.scene-main-nav {
    display: grid;
    gap: 4px;
    margin-bottom: 24px;
}

.scene-nav-item,
.scene-recent,
.scene-category-title,
.scene-category,
.scene-media-tab,
.scene-sort,
.scene-icon-btn,
.scene-close,
.scene-social,
.scene-chip-grid button {
    border: 0;
    background: transparent;
    color: #1b1b1b;
    font-family: "PingFang SC", "Noto Sans SC", Helvetica, Tahoma, Arial, "Microsoft YaHei", "微软雅黑", sans-serif;
    text-align: left;
    outline: none;
}

.scene-nav-item,
.scene-recent {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 32px;
    padding: 0;
    color: #202226;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
}

.scene-nav-item i,
.scene-recent i,
.scene-category-title i {
    display: inline-grid;
    place-items: center;
    width: 16px;
    color: #606b78;
    font-size: 13px;
    font-weight: 300;
}

.scene-nav-item.active span,
.scene-nav-item:hover span,
.scene-category:hover,
.scene-media-tab:hover,
.scene-sort:hover {
    color: #000;
}

.scene-nav-item.active span {
    font-weight: 400;
}

.scene-sidebar-section {
    border-top: 1px solid #efefef;
    padding-top: 18px;
}

.scene-section-label {
    margin-bottom: 12px;
    color: #5f6672;
    font-size: 13px;
    font-weight: 400;
}

.scene-category-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 400;
}

.scene-category-title span {
    display: flex;
    align-items: center;
    gap: 12px;
}

.scene-category-list {
    display: grid;
    gap: 2px;
    margin-left: 10px;
    padding-left: 18px;
    border-left: 1px solid #e2e2e2;
}

.scene-category {
    width: 100%;
    min-height: 32px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 400;
    transition: background .16s ease, color .16s ease;
}

.scene-category.active {
    background: #ec1327;
    color: #fff;
}

.scene-recent {
    margin-top: 14px;
}

.scene-sidebar-footer {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    justify-content: flex-end;
    position: sticky;
    bottom: 0;
    margin-top: auto;
    padding-top: 24px;
    background: #fff;
}

.scene-credit-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
    padding: 16px 14px;
    border-radius: 14px;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(120deg, rgba(111, 124, 255, .72), rgba(255, 124, 179, .72), rgba(255, 184, 92, .5)) border-box;
    border: 1px solid transparent;
}

.scene-credit-card strong,
.scene-credit-card span {
    display: block;
}

.scene-credit-card strong {
    color: #202226;
    font-size: 13px;
    line-height: 1.35;
}

.scene-credit-card span {
    margin-top: 4px;
    color: #5f6672;
    font-size: 12px;
}

.scene-credit-card button {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #ececec;
    border-radius: 50%;
    background: #fff;
}

.scene-credit-card img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.scene-user-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0;
}

.scene-user-avatar {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ec1327;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}

.scene-user-name {
    flex: 0 1 auto;
    min-width: 48px;
    color: #202226;
    font-size: 12px;
    white-space: nowrap;
}

.scene-points-btn {
    display: inline-flex;
    flex: 0 0 auto;
    margin-left: auto;
    align-items: center;
    gap: 5px;
    min-height: 30px;
    padding: 0 7px;
    border: 0;
    border-radius: 11px;
    background: #171717;
    color: #fff;
    font-size: 11px;
}

.scene-points-btn b {
    display: inline-grid;
    place-items: center;
    min-width: 26px;
    height: 22px;
    border-radius: 8px;
    background: rgba(255,255,255,.1);
    color: #fff;
    font-weight: 600;
}

.scene-content {
    grid-column: 2;
    position: relative;
    min-width: 0;
    padding: 16px 16px 42px;
    overflow: hidden;
    isolation: isolate;
}

.scene-grainient-layer {
    position: fixed;
    left: 244px;
    right: 0;
    top: var(--scene-header-height);
    bottom: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(64% 52% at 8% 90%, rgba(91, 155, 255, .22) 0%, rgba(91, 155, 255, 0) 62%),
        radial-gradient(56% 44% at 92% 16%, rgba(210, 160, 255, .22) 0%, rgba(210, 160, 255, 0) 60%),
        radial-gradient(58% 46% at 72% 102%, rgba(255, 170, 115, .2) 0%, rgba(255, 170, 115, 0) 64%),
        linear-gradient(180deg, #eaf4ff 0%, #fff 34%, #fff 62%, #fff6ef 100%);
}

.scene-grainient-layer::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.78) 38%, rgba(255,255,255,.62) 66%, rgba(255,255,255,.12) 100%);
}

.scene-grainient-layer canvas {
    position: absolute;
    left: 0;
    right: auto;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
    opacity: .5;
    filter: blur(18px) saturate(1.05);
    transform: translateZ(0);
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.16) 0%, rgba(0,0,0,.05) 34%, rgba(0,0,0,.35) 62%, rgba(0,0,0,.82) 100%);
    mask-image: linear-gradient(180deg, rgba(0,0,0,.16) 0%, rgba(0,0,0,.05) 34%, rgba(0,0,0,.35) 62%, rgba(0,0,0,.82) 100%);
}

.scene-grainient-layer.is-fallback {
    background:
        radial-gradient(64% 52% at 8% 90%, rgba(91, 155, 255, .24) 0%, rgba(91, 155, 255, 0) 62%),
        radial-gradient(56% 44% at 92% 16%, rgba(210, 160, 255, .24) 0%, rgba(210, 160, 255, 0) 60%),
        radial-gradient(58% 46% at 72% 102%, rgba(255, 170, 115, .22) 0%, rgba(255, 170, 115, 0) 64%),
        linear-gradient(180deg, #eaf4ff 0%, #fff 34%, #fff 62%, #fff6ef 100%);
    animation: scene-grainient-fallback 16s ease-in-out infinite alternate;
}

.scene-content::before,
.scene-content::after {
    content: "";
    position: fixed;
    display: none;
    pointer-events: none;
}

.scene-content::before {
    left: calc(244px - 16vw);
    top: calc(var(--scene-header-height) - 34vh);
    width: 150vw;
    height: 138vh;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(80% 60% at 10% 20%, rgba(41, 130, 255, .42) 0%, rgba(41, 130, 255, 0) 50%),
        radial-gradient(60% 80% at 90% 30%, rgba(184, 112, 255, .38) 0%, rgba(184, 112, 255, 0) 50%),
        radial-gradient(50% 70% at 30% 60%, rgba(255, 166, 77, .38) 0%, rgba(255, 166, 77, 0) 50%),
        radial-gradient(60% 60% at 70% 70%, rgba(247, 247, 247, .5) 0%, rgba(247, 247, 247, 0) 50%);
    filter: blur(60px);
    opacity: .95;
    transform-origin: 48% 52%;
    animation: scene-mesh-orbit 22s ease-in-out infinite alternate;
}

.scene-content::after {
    left: calc(244px - 48vw);
    top: calc(var(--scene-header-height) - 22vh);
    width: 114vw;
    height: 108vh;
    z-index: 0;
    background:
        radial-gradient(55% 45% at 80% 10%, rgba(61, 158, 255, .42) 0%, rgba(61, 158, 255, 0) 45%),
        radial-gradient(45% 55% at 20% 90%, rgba(210, 126, 252, .38) 0%, rgba(210, 126, 252, 0) 45%),
        radial-gradient(50% 50% at 60% 50%, rgba(255, 160, 92, .38) 0%, rgba(255, 160, 92, 0) 45%);
    filter: blur(80px);
    opacity: .9;
    transform-origin: 54% 46%;
    animation: scene-mesh-orbit-reverse 26s ease-in-out infinite alternate;
}

@keyframes scene-grainient-fallback {
    0% {
        background-position: 0% 100%, 74% 94%, 92% 26%, 0 0;
        filter: saturate(1);
    }
    100% {
        background-position: 12% 80%, 60% 88%, 78% 34%, 0 0;
        filter: saturate(1.18);
    }
}

@keyframes scene-mesh-orbit {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    }
    45% {
        transform: translate3d(5vw, 4vh, 0) rotate(9deg) scale(1.05);
    }
    100% {
        transform: translate3d(-3vw, 8vh, 0) rotate(-6deg) scale(1.02);
    }
}

@keyframes scene-mesh-orbit-reverse {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    }
    50% {
        transform: translate3d(-6vw, 5vh, 0) rotate(-10deg) scale(1.08);
    }
    100% {
        transform: translate3d(4vw, -2vh, 0) rotate(7deg) scale(1.03);
    }
}

.scene-board {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 116px);
    padding: 12px 14px 96px;
    overflow: hidden;
    border-radius: 28px;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.035);
    backdrop-filter: none;
}

.scene-panel {
    display: none;
    min-height: calc(100vh - 224px);
}

.scene-panel.active {
    display: block;
}

.scene-tabs-row {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 12px;
    padding: 8px 12px 12px;
    border-radius: 24px 24px 18px 18px;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, .04);
}

.scene-media-tabs,
.scene-sort-tabs {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.scene-media-tabs {
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.scene-media-tab,
.scene-sort {
    white-space: nowrap;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #606b78;
    font-size: 14px;
    transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.scene-media-tab.active {
    border-color: #e8ebef;
    background: #fff;
    color: #202226;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .06);
}

.scene-sort.active {
    border-color: #e8e4dd;
    background: #eeeae4;
    color: #202226;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .04);
}

.scene-gallery {
    column-count: 4;
    column-gap: 14px;
    padding: 8px 8px 58px;
}

.scene-state-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 52px;
    padding: 4px 12px 0;
}

.scene-back-home {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: #4b5563;
    font-size: 20px;
    line-height: 1;
    font-weight: 400;
}

.scene-state-title {
    margin: 0 auto 0 0;
    color: #202226;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
}

.scene-state-tabs {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-right: auto;
}

.scene-state-tabs button,
.scene-state-actions button {
    border: 0;
    background: transparent;
    color: #4b5563;
    font-size: 13px;
}

.scene-state-tabs button {
    position: relative;
    min-height: 34px;
    padding: 0;
    color: #1f2937;
    font-weight: 700;
}

.scene-state-tabs button.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: #111;
}

.scene-state-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.scene-state-actions button {
    min-height: 30px;
    padding: 0 10px;
    border-radius: 13px;
    transition: background .16s ease, color .16s ease;
}

.scene-state-actions button.active {
    background: #000;
    color: #fff;
}

.scene-grid-mode {
    display: grid;
    align-content: center;
    justify-content: center;
    gap: 3px;
    width: 30px;
    padding: 0;
}

.scene-grid-mode span {
    display: block;
    width: 14px;
    height: 2px;
    border-radius: 2px;
    background: #5d6875;
}

.scene-grid-mode-cards {
    grid-template-columns: repeat(2, 5px);
    gap: 4px;
}

.scene-grid-mode-cards span {
    width: 5px;
    height: 5px;
}

.scene-action-icon {
    display: grid;
    place-items: center;
    width: 30px;
    padding: 0;
}

.scene-action-icon img {
    width: 15px;
    height: 15px;
    object-fit: contain;
    opacity: .72;
}

.scene-empty-state {
    display: grid;
    place-items: center;
    align-content: center;
    min-height: calc(100vh - 310px);
    text-align: center;
}

.scene-empty-figure {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: rgba(232, 229, 223, .6);
}

.scene-empty-figure img {
    display: block;
    width: 28px;
    height: 28px;
    object-fit: contain;
    opacity: .72;
}

.scene-empty-state strong {
    color: #202226;
    font-size: 15px;
    font-weight: 700;
}

.scene-empty-state p {
    margin: 10px 0 0;
    color: #6b7280;
    font-size: 13px;
}

.scene-boards-row {
    display: flex;
    gap: 14px;
    padding: 22px 24px 18px;
}

.scene-board-card,
.scene-create-board {
    width: 154px;
    border: 0;
    background: transparent;
    text-align: left;
}

.scene-board-thumb,
.scene-create-board {
    overflow: hidden;
    width: 154px;
    height: 118px;
    border-radius: 14px;
}

.scene-board-thumb-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    background: #e8e5df;
}

.scene-board-thumb-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scene-board-card strong,
.scene-board-card span {
    display: block;
    margin-top: 8px;
    color: #202226;
    font-size: 13px;
}

.scene-board-card span {
    margin-top: 4px;
    color: #6b7280;
}

.scene-create-board {
    display: grid;
    place-items: center;
    position: relative;
    color: #202226;
    background:
        linear-gradient(90deg, transparent calc(50% - .5px), rgba(255,255,255,.72) 0 calc(50% + .5px), transparent 0),
        linear-gradient(0deg, transparent calc(50% - .5px), rgba(255,255,255,.72) 0 calc(50% + .5px), transparent 0),
        #e8e5df;
    font-size: 13px;
    font-weight: 700;
}

.scene-create-board span {
    min-width: 56px;
    min-height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #fff;
}

.scene-favorites-title {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 24px 0;
}

.scene-favorites-title h2 {
    margin: 0;
    color: #202226;
    font-size: 20px;
    line-height: 1.2;
}

.scene-favorites-title > span {
    color: #6b7280;
    font-size: 13px;
}

.scene-favorites-title .scene-state-actions {
    margin-left: auto;
}

.scene-favorite-empty {
    min-height: calc(100vh - 446px);
}

.scene-search-modal {
    position: fixed;
    inset: 0;
    z-index: 900;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 250px;
}

.scene-search-modal.open {
    display: flex;
}

.scene-search-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0,0,0,.68);
}

.scene-search-dialog {
    position: relative;
    width: min(820px, calc(100vw - 48px));
    min-height: 520px;
    padding: 24px 22px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 26px 90px rgba(0,0,0,.22);
}

.scene-search-field {
    display: flex;
    align-items: center;
    gap: 14px;
}

.scene-search-field > img {
    width: 22px;
    height: 22px;
    opacity: .72;
}

.scene-search-field input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #1f2937;
    font-size: 20px;
}

.scene-search-field input::placeholder {
    color: #c5cad2;
}

.scene-search-field button {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #4b5563;
    font-size: 18px;
}

.scene-search-field button img {
    width: 22px;
    height: 22px;
    opacity: .72;
}

.scene-search-field .scene-close-search {
    color: #5f6874;
    font-size: 28px;
    line-height: 1;
    font-weight: 300;
}

.scene-recent-searches {
    margin-top: 34px;
}

.scene-recent-searches strong {
    color: #202226;
    font-size: 13px;
}

.scene-recent-grid {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.scene-recent-grid button {
    overflow: hidden;
    width: 104px;
    height: 104px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: #e8e5df;
}

.scene-recent-grid img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scene-card {
    --scene-card-radius: 14px;
    display: inline-block;
    width: 100%;
    min-width: 0;
    margin: 0 0 14px;
    cursor: pointer;
    break-inside: avoid;
}

.scene-card-media {
    position: relative;
    overflow: hidden;
    background: #111;
    border-radius: var(--scene-card-radius);
    clip-path: inset(0 round var(--scene-card-radius));
    transform: translateZ(0);
    isolation: isolate;
}

.scene-card-media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--scene-card-radius);
    transition: transform .35s ease;
    transform-origin: center center;
    will-change: transform;
}

.scene-card:hover .scene-card-media img {
    transform: scale(1.018);
}

.scene-card-overlay {
    position: absolute;
    inset: 0;
    border-radius: var(--scene-card-radius);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 12px;
    padding: 0 14px 16px;
    color: #fff;
    background: linear-gradient(180deg, rgba(0,0,0,0) 46%, rgba(0,0,0,.48) 74%, rgba(0,0,0,.82) 100%);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .22s ease, transform .22s ease;
}

.scene-card:hover .scene-card-overlay {
    opacity: 1;
    transform: translateY(0);
}

.scene-card-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.scene-avatar {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    color: #111;
    font-size: 14px;
    font-weight: 700;
}

.scene-avatar img,
.scene-use-idea img,
.scene-like img {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.scene-card-author strong,
.scene-card-author small {
    display: block;
    color: #fff;
    line-height: 1.25;
}

.scene-card-author strong {
    font-size: 16px;
}

.scene-card-author small {
    margin-top: 2px;
    font-size: 14px;
    opacity: .78;
}

.scene-card-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: nowrap;
}

.scene-use-idea {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex: 0 0 auto;
    min-width: 110px;
    min-height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 18px;
    background: #fff;
    color: #111;
    font-size: 14px;
    font-weight: 700;
}

.scene-like {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    min-width: 76px;
    height: 38px;
    border-radius: 19px;
    background: rgba(0,0,0,.32);
    color: #fff;
    font-size: 14px;
}

.scene-like {
    gap: 6px;
    padding: 0 12px;
}

.scene-bottom-dock {
    position: fixed;
    left: calc(244px + (100vw - 244px) / 2);
    bottom: 24px;
    z-index: 70;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    width: max-content;
    max-width: calc(100% - 40px);
    margin: 0;
    transform: translateX(-50%);
    min-height: 74px;
    padding: 0 28px;
    border-radius: 26px;
    background: rgba(255, 255, 255, .74);
    box-shadow: 0 18px 48px rgba(30, 37, 52, .14), inset 0 1px 0 rgba(255,255,255,.78);
    backdrop-filter: blur(24px) saturate(1.08);
    -webkit-backdrop-filter: blur(24px) saturate(1.08);
    perspective: 600px;
    transform-style: preserve-3d;
    transition: background .2s ease, box-shadow .2s ease;
}

.scene-bottom-dock button {
    --dock-rotate: 0deg;
    --dock-scale: 1;
    position: relative;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 16px;
    background: rgba(255,255,255,.38);
    transform: translate3d(0, 0, 0) rotateZ(var(--dock-rotate)) scale(var(--dock-scale));
    transform-origin: 90% 90%;
    transition: transform .46s cubic-bezier(.18, .9, .28, 1.18), background .22s ease, box-shadow .22s ease, opacity .22s ease;
    will-change: transform;
}

.scene-bottom-dock button:nth-child(1) {
    --dock-rotate: -1.5deg;
    --dock-scale: .99;
}

.scene-bottom-dock button:nth-child(2) {
    --dock-rotate: 1.2deg;
}

.scene-bottom-dock button:nth-child(3) {
    --dock-rotate: -.8deg;
}

.scene-bottom-dock button:nth-child(4) {
    --dock-rotate: 1.6deg;
    --dock-scale: .98;
}

.scene-bottom-dock button:nth-child(5) {
    --dock-rotate: -1.1deg;
}

.scene-bottom-dock button:hover,
.scene-bottom-dock button:focus-visible {
    transform: translate3d(0, -5px, 24px) rotateX(0deg) rotateY(0deg) rotateZ(var(--dock-rotate)) scale(1.08);
    background: rgba(255,255,255,.78);
    box-shadow: 0 10px 28px rgba(21, 28, 40, .12);
}

.scene-bottom-dock button:active {
    transform: translate3d(0, 3px, 0) rotateZ(var(--dock-rotate)) scale(.94);
    transition-duration: .12s;
}

.scene-bottom-dock button.is-pulsing {
    animation: scene-dock-stack-send .72s cubic-bezier(.2, 1.1, .22, 1) both;
}

.scene-bottom-dock.is-shuffling button:not(.is-pulsing) {
    animation: scene-dock-stack-settle .52s cubic-bezier(.18, .9, .28, 1.18) both;
}

@keyframes scene-dock-stack-send {
    0% {
        transform: translate3d(0, 0, 0) rotateZ(var(--dock-rotate)) scale(var(--dock-scale));
    }
    35% {
        transform: translate3d(0, -16px, 36px) rotateX(14deg) rotateY(-10deg) rotateZ(calc(var(--dock-rotate) + 6deg)) scale(1.12);
        background: rgba(255,255,255,.82);
    }
    70% {
        transform: translate3d(0, 4px, -14px) rotateX(0deg) rotateY(0deg) rotateZ(calc(var(--dock-rotate) - 4deg)) scale(.94);
        opacity: .92;
    }
    100% {
        transform: translate3d(0, 0, 0) rotateZ(var(--dock-rotate)) scale(var(--dock-scale));
        opacity: 1;
    }
}

@keyframes scene-dock-stack-settle {
    0% {
        transform: translate3d(0, 2px, -10px) rotateZ(calc(var(--dock-rotate) - 2deg)) scale(.97);
    }
    100% {
        transform: translate3d(0, 0, 0) rotateZ(var(--dock-rotate)) scale(var(--dock-scale));
    }
}

.scene-bottom-dock img,
.scene-ui-icon {
    display: block;
    width: 21px;
    height: 21px;
    object-fit: contain;
    background: transparent;
}

.scene-sidebar .scene-ui-icon {
    width: 14px;
    height: 14px;
    opacity: .82;
}

.scene-nav-item.active .scene-ui-icon,
.scene-nav-item:hover .scene-ui-icon {
    opacity: 1;
}

.scene-bottom-dock span {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 16px);
    width: max-content;
    height: auto;
    min-width: 64px;
    max-width: 132px;
    padding: 9px 13px;
    overflow: hidden;
    clip: auto;
    border-radius: 10px;
    background: #111;
    color: #fff;
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 12px 24px rgba(0,0,0,.22);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 8px);
    transition: opacity .16s ease, transform .16s ease;
}

.scene-bottom-dock span::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    width: 12px;
    height: 12px;
    background: #111;
    transform: translate(-50%, -7px) rotate(45deg);
    border-radius: 2px;
}

.scene-bottom-dock button:hover span,
.scene-bottom-dock button:focus-visible span {
    opacity: 1;
    transform: translate(-50%, 0);
}

.scene-detail {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 520px;
    background: #f4f4f4;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
}

.scene-detail.open {
    opacity: 1;
    pointer-events: auto;
}

.scene-preview-stage {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 0;
    padding: 64px 72px 48px;
    background: #f5f5f5;
}

.scene-detail-actions {
    position: absolute;
    right: 24px;
    top: 18px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.scene-icon-btn,
.scene-close {
    min-height: 38px;
    padding: 0 13px;
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.12);
    text-align: center;
}

.scene-close {
    display: flex;
    gap: 10px;
    align-items: center;
}

.scene-close span {
    color: #666;
    font-size: 12px;
}

.scene-detail-image {
    width: auto;
    height: auto;
    max-width: min(100%, 960px);
    max-height: calc(100vh - 120px);
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 16px 60px rgba(0,0,0,.08);
    transition: opacity .2s ease, transform .2s ease;
}

.scene-detail-image.is-generated {
    transform: scale(1.005);
}

.scene-studio {
    min-width: 0;
    padding: 28px 28px 24px;
    background: #fff;
    overflow-y: auto;
}

.scene-studio-head,
.scene-social-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.scene-studio-title {
    font-size: 18px;
    font-weight: 800;
}

.scene-studio-subtitle,
.scene-model-mark {
    margin-top: 4px;
    color: #6b7280;
    font-size: 13px;
}

.scene-social-row {
    justify-content: flex-start;
    margin: 22px 0;
}

.scene-social {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    min-height: 36px;
    padding: 0 4px;
    font-size: 14px;
}

.scene-social.active {
    color: #ec1327;
}

.scene-social.active .scene-ui-icon {
    filter: invert(16%) sepia(88%) saturate(4119%) hue-rotate(345deg) brightness(96%) contrast(94%);
}

.scene-form {
    display: grid;
    gap: 10px;
}

.scene-form label,
.scene-copy-label,
.scene-related-title {
    color: #858585;
    font-size: 13px;
    font-weight: 400;
}

.scene-form textarea {
    width: 100%;
    border: 1px solid #dedede;
    background: #fff;
    border-radius: 0;
    padding: 12px;
    font-size: 14px;
    outline: none;
}

.scene-form textarea {
    resize: vertical;
    line-height: 1.6;
}

.scene-font-picker {
    position: relative;
    width: 100%;
}

.scene-font-picker-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 46px;
    padding: 0 13px;
    border: 1px solid #dedede;
    background: #fff;
    color: #202020;
    font-size: 14px;
    text-align: left;
}

.scene-font-picker-toggle i {
    transition: transform .18s ease;
}

.scene-font-picker.open .scene-font-picker-toggle {
    border-color: #202020;
}

.scene-font-picker.open .scene-font-picker-toggle i {
    transform: rotate(180deg);
}

.scene-font-picker-panel {
    position: absolute;
    z-index: 30;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    max-height: 360px;
    overflow-y: auto;
    border: 1px solid #dedede;
    background: #fff;
    box-shadow: 0 12px 28px rgba(0,0,0,.14);
}

.scene-font-type + .scene-font-type {
    border-top: 1px solid #ececec;
}

.scene-font-type summary {
    display: grid;
    grid-template-columns: 1fr auto 18px;
    gap: 10px;
    align-items: center;
    min-height: 44px;
    padding: 0 13px;
    cursor: pointer;
    color: #222;
    font-size: 14px;
    font-weight: 700;
    list-style: none;
}

.scene-font-type summary::-webkit-details-marker {
    display: none;
}

.scene-font-type summary:hover {
    background: #f6f6f6;
}

.scene-font-type summary small {
    color: #999;
    font-size: 12px;
    font-weight: 400;
}

.scene-font-type summary i {
    color: #777;
    text-align: center;
    transition: transform .18s ease;
}

.scene-font-type[open] summary i {
    transform: rotate(180deg);
}

.scene-font-options {
    padding: 4px 8px 9px;
    background: #fafafa;
}

.scene-font-option {
    display: block;
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 0;
    background: transparent;
    color: #333;
    font-size: 14px;
    line-height: 22px;
    text-align: left;
}

.scene-font-option:hover,
.scene-font-option.active {
    background: #ececec;
    color: #c8161d;
}

.scene-font-empty {
    padding: 9px 10px;
    color: #999;
    font-size: 13px;
}
.scene-font-preview {
    min-height: 54px;
    margin: 0 0 4px;
    padding: 12px 14px;
    overflow: hidden;
    border-radius: 12px;
    background: #f6f6f6;
    color: #1d1d1d;
    font-size: 40px;
    line-height: 1.45;
    transition: opacity .18s ease;
}

.scene-font-preview.is-loading {
    cursor: progress;
    opacity: .55;
}

.scene-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.scene-chip-grid button {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 17px;
    background: #f3f3f3;
    font-size: 13px;
    transition: background .16s ease, color .16s ease;
}

.scene-chip-grid button.active {
    background: #ec1327;
    color: #fff;
}

.scene-copy-block {
    margin-top: 20px;
}

.scene-copy-block p {
    margin: 8px 0 0;
    color: #202020;
    font-size: 14px;
    line-height: 1.65;
}

.scene-expand {
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    font-weight: 700;
}

.scene-related {
    margin-top: 26px;
}

.scene-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.scene-related-grid button {
    overflow: hidden;
    aspect-ratio: 9 / 12;
    padding: 0;
    border: 0;
    background: #eee;
    border-radius: 12px;
}

.scene-related-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scene-generate-message {
    min-height: 22px;
    margin-top: 18px;
    color: #666;
    font-size: 13px;
    line-height: 22px;
}

.scene-generate-message.error {
    color: #c8161d;
}

.scene-generate-message.success {
    color: #16794a;
}

.scene-primary-btn:disabled,
.scene-icon-btn:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.scene-primary-btn.is-loading img {
    animation: scene-generate-spin 1.2s linear infinite;
}

@keyframes scene-generate-spin {
    to { transform: rotate(360deg); }
}
.scene-studio-bottom {
    position: sticky;
    bottom: -24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 26px -2px 0;
    padding: 18px 0 0;
    background: #fff;
}

.scene-primary-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    min-height: 52px;
    border: 0;
    border-radius: 16px;
    background: #111;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.scene-primary-btn:hover,
.scene-primary-btn:focus {
    color: #fff;
}

.scene-primary-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: invert(1);
}

.scene-auth-btn {
    background: #ec1327;
}

@media (max-width: 1190px) {
    .scene-shell {
        grid-template-columns: 230px minmax(0, 1fr);
        background: #f8f9fb;
    }
    .scene-sidebar {
        width: 230px;
        padding-left: 20px;
        padding-right: 18px;
    }
    .scene-grainient-layer {
        left: 230px;
    }
    .scene-bottom-dock {
        left: calc(230px + (100vw - 230px) / 2);
    }
    .scene-gallery {
        column-count: 3;
    }
    .scene-detail {
        grid-template-columns: minmax(0, 1fr) 430px;
    }
}

@media (max-width: 480px) {
    .scene-shell {
        display: block;
    }
    .scene-sidebar {
        position: relative;
        top: auto;
        bottom: auto;
        width: auto;
        height: auto;
        min-height: auto;
        border-right: 0;
    }
    .scene-content {
        grid-column: auto;
    }
    .scene-main-nav,
    .scene-category-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .scene-tabs-row {
        flex-direction: column;
        align-items: stretch;
    }
    .scene-gallery {
        column-count: 2;
    }
    .scene-content::before {
        left: 0;
    }
    .scene-grainient-layer {
        left: 0;
    }
    .scene-bottom-dock {
        left: 50%;
        bottom: 16px;
        gap: 14px;
        min-height: 64px;
        padding: 0 20px;
    }
    .scene-detail {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }
    .scene-preview-stage {
        min-height: 100vh;
        padding: 64px 22px 96px;
    }
    .scene-studio {
        overflow: visible;
    }
}
