.shell-app.is-storyboard-view {
    --shell-header-height: 50px;
}

.shell-app.is-storyboard-view .shell-header {
    min-height: var(--shell-header-height);
    padding: 6px 12px;
}

.shell-app.is-storyboard-view .ui-top-navigation-bar {
    gap: 12px;
}

.shell-app.is-storyboard-view .ui-top-navigation-bar__title {
    margin: 0;
    font-size: 1rem;
}

.shell-app.is-storyboard-view .ui-top-navigation-bar__actions {
    gap: 6px;
}

.shell-app.is-storyboard-view .ui-top-navigation-bar__user-email,
.shell-app.is-storyboard-view .ui-top-navigation-bar__label,
.shell-app.is-storyboard-view .ui-top-navigation-bar__description {
    display: none;
}

.shell-app.is-storyboard-view .shell-select,
.shell-app.is-storyboard-view .shell-action-button {
    min-height: 32px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.shell-app.is-storyboard-view .shell-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    min-height: calc(100vh - var(--shell-header-height));
    padding: 0;
}

.shell-app.is-storyboard-view .shell-content,
.shell-app.is-storyboard-view .shell-panel {
    min-width: 0;
    min-height: 0;
}

.shell-app.is-storyboard-view .shell-panel {
    width: 100%;
    min-height: calc(100vh - var(--shell-header-height));
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.shell-app.is-storyboard-view .storyboard-dnd-root {
    width: 100%;
    min-width: 0;
    min-height: 0;
}

.shell-app.is-storyboard-view .explorer-shell {
    grid-template-columns: 260px minmax(0, 1fr) 320px;
    width: 100%;
    min-width: 0;
    min-height: calc(100vh - var(--shell-header-height));
}

.shell-app.is-storyboard-view .explorer-shell--left-collapsed {
    grid-template-columns: 52px minmax(0, 1fr) 320px;
}

.shell-app.is-storyboard-view .explorer-shell--right-collapsed {
    grid-template-columns: 260px minmax(0, 1fr) 52px;
}

.shell-app.is-storyboard-view .explorer-shell--left-collapsed.explorer-shell--right-collapsed {
    grid-template-columns: 52px minmax(0, 1fr) 52px;
}

.shell-app.is-storyboard-view .explorer-shell__main,
.shell-app.is-storyboard-view .explorer-shell__content {
    min-width: 0;
    min-height: 0;
}

@media (max-width: 1280px) {
    .shell-app.is-storyboard-view .explorer-shell,
    .shell-app.is-storyboard-view .explorer-shell--left-collapsed,
    .shell-app.is-storyboard-view .explorer-shell--right-collapsed,
    .shell-app.is-storyboard-view .explorer-shell--left-collapsed.explorer-shell--right-collapsed {
        grid-template-columns: minmax(0, 1fr);
    }
}

.shell-story-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    align-items: start;
}

.shell-story-column {
    padding: 10px;
    border: 1px solid var(--shell-line);
    border-radius: var(--shell-radius);
    background: var(--shell-panel-strong);
}

.shell-story-scene {
    display: grid;
    gap: 8px;
}

.storyboard-dnd-root .sequence-unassigned {
    display: block;
}

.storyboard-dnd-root .storyboard-source-empty {
    padding: 12px;
    border: 1px dashed var(--shell-line);
    border-radius: 6px;
    color: var(--shell-muted);
    font-size: 12px;
    line-height: 1.35;
}

.storyboard-dnd-root .episode-header {
    cursor: pointer;
}

.storyboard-dnd-root .storyboard-episode-synopsis,
.storyboard-dnd-root .storyboard-act-description,
.storyboard-dnd-root .storyboard-sequence-synopsis {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.storyboard-dnd-root .act-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.storyboard-dnd-root .scene {
    cursor: pointer;
}

.storyboard-dnd-root .episode-header.is-selected,
.storyboard-dnd-root .act-header.is-selected,
.storyboard-dnd-root .sequence.is-selected,
.storyboard-dnd-root .scene.is-selected {
    outline: 2px solid color-mix(in srgb, var(--shell-accent-strong) 80%, transparent);
    outline-offset: 2px;
}

.storyboard-dnd-root .scene-thumb {
    overflow: hidden;
}

.storyboard-dnd-root .scene-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.storyboard-dnd-root .scene-thumb__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
}

.storyboard-dnd-root .storyboard-linked-ideas {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

.storyboard-dnd-root .storyboard-linked-idea {
    max-width: 180px;
    overflow: hidden;
    padding: 3px 7px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.14);
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.storyboard-dnd-root .scene-inspector-editor {
    gap: 14px;
}

.storyboard-dnd-root .scene-inspector-editor .idea-editor-image-frame {
    min-height: 170px;
}

.storyboard-dnd-root .storyboard-inspector .idea-editor__actions {
    margin-top: 4px;
}

