.scene-workshop-body {
    --scene-rail-width: 72px;
    --scene-secondary-width: 272px;
    --scene-navigation-width: calc(var(--scene-rail-width) + var(--scene-secondary-width));
    background: #f7f7f7;
}

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

.scene-primary-rail {
    grid-column: 1;
    position: fixed;
    top: var(--scene-header-height);
    bottom: 0;
    left: 0;
    z-index: 74;
    width: var(--scene-rail-width);
    padding: 12px 8px 18px;
    border-right: 1px solid #e6e6e6;
    background: #fafafa;
    box-sizing: border-box;
}

.scene-rail-toggle,
.scene-workspace-nav-item {
    width: 100%;
    border: 0;
    background: transparent;
    color: #555;
    font-family: inherit;
}

.scene-rail-toggle {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin: 0 auto 18px;
    border-radius: 12px;
    background: #ebebeb;
    color: #555;
    font-size: 17px;
    transition: background .18s ease, transform .18s ease;
}

.scene-rail-toggle:hover,
.scene-rail-toggle:focus-visible {
    background: #e2e2e2;
    transform: translateY(-1px);
}

.scene-workspace-nav {
    display: grid;
    gap: 8px;
}

.scene-workspace-nav-item {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 7px 2px;
    border-radius: 14px;
    font-size: 11px;
    line-height: 1.15;
}

.scene-workspace-nav-item:hover,
.scene-workspace-nav-item:focus-visible,
.scene-workspace-nav-item.active {
    background: transparent;
    color: #555;
}

.scene-workspace-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: #555;
    font-size: 17px;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.scene-workspace-icon-create {
    background: #444;
    color: #fff;
    box-shadow: 0 5px 14px rgba(0, 0, 0, .12);
}

.scene-workspace-icon-ai {
    background: #fff;
    color: #444;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .10);
}

.scene-workspace-nav-item:hover .scene-workspace-icon,
.scene-workspace-nav-item.active .scene-workspace-icon {
    background: #e2e2e2;
    color: #222;
}

.scene-workspace-nav-item:hover .scene-workspace-icon-create,
.scene-workspace-nav-item.active .scene-workspace-icon-create {
    background: #333;
    color: #fff;
}

.scene-workspace-nav-item:focus-visible {
    outline: none;
}

.scene-workspace-nav-item:focus-visible .scene-workspace-icon {
    outline: 2px solid #777;
    outline-offset: 2px;
}

.scene-workspace-pages {
    grid-column: 2;
    min-width: 0;
}

.scene-workspace-page {
    display: none;
    grid-template-columns: var(--scene-secondary-width) minmax(0, 1fr);
    min-height: calc(100dvh - var(--scene-header-height));
}

.scene-workspace-page.active {
    display: grid;
}

.scene-workspace-page[hidden] {
    display: none !important;
}

.scene-secondary-panel,
.scene-secondary-panel.scene-sidebar {
    grid-column: 1;
    position: sticky;
    top: 0;
    left: auto;
    bottom: auto;
    z-index: 30;
    align-self: start;
    width: var(--scene-secondary-width);
    height: calc(100dvh - var(--scene-header-height));
    min-height: calc(100dvh - var(--scene-header-height));
    padding: 18px 18px 24px;
    overflow-y: auto;
    border-right: 1px solid #e6e6e6;
    background: #fafafa;
    box-sizing: border-box;
    scrollbar-width: thin;
}

.scene-secondary-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    min-height: 48px;
    margin-bottom: 24px;
    padding: 1px 4px 0;
}

.scene-secondary-head strong,
.scene-secondary-head span {
    display: block;
}

.scene-secondary-head strong {
    font-size: 20px;
    font-weight: 650;
    letter-spacing: -.02em;
}

.scene-secondary-head div > span {
    margin-top: 5px;
    color: #777;
    font-size: 12px;
}

.scene-secondary-badge {
    margin-top: 3px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #666;
    color: #fff;
    font-size: 10px;
    line-height: 1.2;
}

.scene-secondary-links {
    display: grid;
    gap: 4px;
}

.scene-secondary-links button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #262626;
    font-family: inherit;
    font-size: 14px;
    text-align: left;
}

.scene-secondary-links button i {
    width: 18px;
    color: #666;
    font-size: 16px;
    text-align: center;
}

.scene-secondary-links button.active {
    background: #ebebeb;
    color: #222;
}

.scene-secondary-links button.active i {
    color: #444;
}

.scene-secondary-tip {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    padding: 15px;
    border: 1px dashed #d7d7d7;
    border-radius: 14px;
    background: rgba(255,255,255,.54);
    color: #383838;
}

.scene-secondary-tip > i {
    margin-top: 2px;
    color: #666;
    font-size: 18px;
}

.scene-secondary-tip p,
.scene-secondary-tip strong,
.scene-secondary-tip span {
    display: block;
    margin: 0;
}

.scene-secondary-tip strong {
    font-size: 13px;
}

.scene-secondary-tip span {
    margin-top: 5px;
    color: #707070;
    font-size: 12px;
    line-height: 1.65;
}

.scene-workspace-content {
    grid-column: 2;
    min-width: 0;
    padding: 54px clamp(28px, 5vw, 76px) 80px;
    overflow: hidden;
    background: #f7f7f7;
}

.scene-workspace-hero {
    max-width: 680px;
}

.scene-eyebrow {
    display: inline-flex;
    padding: 6px 11px;
    border-radius: 999px;
    background: #eee;
    color: #444;
    font-size: 12px;
    font-weight: 600;
}

.scene-workspace-hero h1 {
    margin: 18px 0 10px;
    color: #222;
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.1;
    letter-spacing: -.04em;
}

.scene-workspace-hero p {
    margin: 0;
    color: #6e6e6e;
    font-size: 16px;
    line-height: 1.8;
}

.scene-workspace-collapsed {
    --scene-secondary-width: 0px;
    --scene-navigation-width: var(--scene-rail-width);
}

.scene-workspace-collapsed .scene-secondary-panel {
    visibility: hidden;
    padding-inline: 0;
    border-right: 0;
    opacity: 0;
    pointer-events: none;
}

.scene-workspace-collapsed .scene-rail-toggle i {
    transform: rotate(180deg);
}

.scene-workspace-collapsed .scene-grainient-layer {
    left: var(--scene-rail-width);
}

.scene-workspace-collapsed .scene-bottom-dock {
    left: calc(var(--scene-rail-width) + (100vw - var(--scene-rail-width)) / 2);
}

@media (max-width: 760px) {
    .scene-workshop-body { --scene-rail-width: 62px; --scene-secondary-width: min(272px, calc(100vw - 62px)); }
    .scene-workspace-page { position: relative; grid-template-columns: minmax(0, 1fr); }
    .scene-secondary-panel,
    .scene-secondary-panel.scene-sidebar { position: fixed; top: var(--scene-header-height); left: var(--scene-rail-width); z-index: 73; box-shadow: 18px 0 36px rgba(39, 29, 58, .1); }
    .scene-workspace-page > .scene-content,
    .scene-workspace-content { grid-column: 1; }
    .scene-workspace-nav-item { font-size: 10px; }
    .scene-workspace-icon { width: 32px; height: 32px; }
    .scene-workspace-collapsed .scene-secondary-panel { transform: translateX(-100%); }
}
.scene-list-host { grid-column: 2; min-width: 0; }
.scene-list-host .scene-content { padding: 16px 16px 42px; }
.scene-list-host .scene-gallery { --scene-gallery-columns: 6; }
.scene-list-host .scene-grainient-layer { left: var(--scene-navigation-width); background: #f6f6f6; animation: none; }
.scene-list-host .scene-grainient-layer canvas { display: none; }
.scene-list-host .scene-bottom-dock { left: calc(var(--scene-navigation-width) + (100vw - var(--scene-navigation-width)) / 2); }
.scene-bottom-dock[hidden] { display: none !important; }
.scene-secondary-panel .scene-category.active { background: #ddd; color: #222; }
.scene-secondary-panel .scene-nav-item { min-height: 42px; padding: 0 12px; border-radius: 10px; }
.scene-secondary-panel .scene-nav-item.active { background: #ebebeb; }
.scene-secondary-head div > span { line-height: 1.6; }

/* Navigation hover feedback belongs to the icon, never the Chinese label. */
.scene-secondary-panel .scene-nav-item i,
.scene-secondary-links button i {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 8px;
    transition: background .18s ease;
}
.scene-secondary-panel .scene-nav-item:hover i,
.scene-secondary-panel .scene-nav-item:focus-visible i,
.scene-secondary-links button:hover i,
.scene-secondary-links button:focus-visible i {
    background: #e2e2e2;
}
.scene-secondary-panel .scene-nav-item span,
.scene-secondary-panel .scene-nav-item:hover span,
.scene-secondary-panel .scene-nav-item.active span {
    color: #262626;
}
@media (max-width: 760px) {
    .scene-list-host { grid-column: 1; }
    .scene-list-host .scene-gallery { --scene-gallery-columns: 2; }
    .scene-list-host .scene-grainient-layer { left: var(--scene-rail-width); }
}

