body[data-octap-home-route="editor"] .app-shell {
    visibility: hidden;
    pointer-events: none;
}

body[data-octap-home-route="editor"] .octap-home-topbar {
    display: none;
}

body[data-octap-home-route="editor"] .octap-home-stage {
    height: 100vh;
}

body[data-octap-home-route="editor"] .octap-home-view[data-view="editor"] {
    display: flex;
}

body[data-octap-home-route="editor"] .octap-home-nav {
    display: none;
}

body[data-octap-home-route="editor"] .octap-workspace-nav {
    display: none;
}

.octap-editor-view {
    height: 100vh;
    min-height: 0;
    padding: 0;
    flex-direction: column;
}

.octap-editor-view #octapEditorBoard {
    flex: 1 1 auto;
    min-height: 0;
}

.octap-editor-board {
    position: relative;
    height: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    color: var(--home-text);
    background: linear-gradient(180deg, var(--octap-surface, #101216) 0%, var(--octap-bg, #0b0d10) 44%, var(--octap-surface-deep, #090a0d) 100%);
    border-top: 0;
    overflow: hidden;
}

.octap-editor-board *,
.octap-editor-board *::before,
.octap-editor-board *::after {
    box-sizing: border-box;
}

.octap-editor-board button,
.octap-editor-board input,
.octap-editor-board select,
.octap-editor-board textarea {
    font: inherit;
}

.editor-topbar,
.editor-top-left,
.editor-top-right,
.editor-media-head,
.editor-preview-controls,
.editor-preview-actions,
.editor-timecode,
.editor-timeline-toolbar,
.editor-timeline-tools,
.editor-track-head > div,
.editor-inspector-actions,
.editor-rendered-card > div {
    display: flex;
    align-items: center;
}

.editor-topbar {
    position: relative;
    z-index: 3;
    height: 60px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    border-bottom: 1px solid var(--home-line);
    background: var(--octap-surface-deep, rgba(8, 10, 13, 0.97));
}

.editor-workspace-tabs {
    min-width: 0;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.octap-editor-board .editor-workspace-tab {
    position: relative;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--home-muted);
    font-size: var(--octap-font-14, 14px);
    font-weight: var(--octap-weight-regular, 400);
    letter-spacing: 0;
    cursor: pointer;
    transition: color .16s ease;
}

.editor-workspace-tab::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    border-radius: 2px;
    background: transparent;
}

.editor-workspace-tab:hover,
.editor-workspace-tab:focus-visible {
    color: var(--home-text);
}

.editor-workspace-tab.is-active {
    color: var(--home-accent);
}

.editor-workspace-tab.is-active::after {
    background: var(--home-accent);
}

.editor-top-left,
.editor-top-right {
    min-width: 0;
    gap: 8px;
}

.editor-top-left {
    flex: 1 1 0;
}

.editor-top-right {
    flex: 1 1 0;
    justify-content: flex-end;
}

.editor-icon-button,
.editor-ghost-button,
.editor-primary-button,
.editor-play-button,
.editor-preview-actions button,
.editor-inspector-actions button,
.editor-timeline-tools button,
.editor-add-text,
.editor-asset-thumb button {
    border: 1px solid var(--home-line);
    background: rgba(255, 255, 255, 0.035);
    color: var(--home-text);
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, color .16s ease, opacity .16s ease;
}

.editor-icon-button {
    width: var(--octap-control-sm, 30px);
    height: var(--octap-control-sm, 30px);
    display: inline-grid;
    place-items: center;
    border-radius: var(--octap-radius-sm, 8px);
    background: transparent;
}

.editor-ghost-button,
.editor-primary-button,
.editor-preview-actions button,
.editor-preview-fit-menu button,
.editor-inspector-actions button,
.editor-timeline-tools button {
    height: var(--octap-control-sm, 30px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 11px;
    border-radius: var(--octap-radius-sm, 8px);
    font-size: var(--octap-font-12, 12px);
    font-weight: var(--octap-weight-semibold, 680);
}

.editor-ghost-button.is-compact {
    height: 28px;
    padding: 0 9px;
}

.editor-primary-button {
    border-color: rgba(245, 158, 11, 0.48);
    background: rgba(245, 158, 11, 0.10);
    color: #fbbf24;
}

.editor-primary-button:disabled,
.editor-timeline-tools button:disabled {
    opacity: .42;
    cursor: not-allowed;
}

.editor-icon-button:hover,
.editor-ghost-button:hover,
.editor-inspector-actions button:hover,
.editor-timeline-tools button:hover:not(:disabled) {
    border-color: var(--home-line-strong);
    background: rgba(255, 255, 255, 0.065);
}

.editor-primary-button:hover:not(:disabled) {
    background: rgba(245, 158, 11, 0.16);
}

.editor-brand-menu {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.editor-brand-home {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    margin-right: 3px;
    transition: background .16s ease;
}

.editor-brand-home:hover {
    background: rgba(255, 255, 255, 0.045);
}

.editor-brand-menu-trigger {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-tertiary, var(--home-muted));
    cursor: pointer;
    transition: background .16s ease, color .16s ease;
}

.editor-brand-menu-trigger:hover,
.editor-brand-menu-trigger.is-open {
    color: var(--text-primary, var(--home-text));
    background: var(--panel-hover, rgba(255, 255, 255, 0.045));
}

.editor-brand-logo {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    filter: drop-shadow(0 4px 14px rgba(255, 149, 0, 0.36));
    overflow: hidden;
}

.editor-brand-logo img {
    width: auto;
    height: 36px;
    max-width: 36px;
    display: block;
    object-fit: contain;
}

.editor-brand-wordmark {
    color: var(--home-text);
    font-size: var(--octap-font-18, 18px);
    font-weight: var(--octap-weight-brand, 760);
    line-height: 1;
}

.editor-brand-wordmark b {
    color: var(--home-accent);
}

.editor-brand-chevron {
    display: inline-grid;
    place-items: center;
    color: currentColor;
    transition: transform .16s ease, color .16s ease;
}

.editor-brand-menu-trigger.is-open .editor-brand-chevron {
    transform: rotate(180deg);
}

.editor-top-menu-dropdown {
    position: fixed;
    top: auto;
    left: auto;
    z-index: 12015;
}

.editor-title-block {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.editor-title-input {
    width: auto;
    min-width: 68px;
    max-width: min(240px, 26vw);
    height: 30px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--home-text);
    font-size: 14px;
    font-weight: 400;
    line-height: 30px;
    text-align: center;
    letter-spacing: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    field-sizing: content;
}

.editor-title-input:hover,
.editor-title-input:focus {
    border-color: var(--home-line);
    background: rgba(255, 255, 255, 0.035);
    outline: none;
}

.editor-aspect-badge {
    height: 26px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border: 1px solid var(--home-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.026);
    color: var(--home-muted);
    font-size: 11px;
    font-weight: 680;
    white-space: nowrap;
}

.editor-main {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns:
        minmax(270px, var(--editor-left-panel-width, 360px))
        8px
        minmax(420px, 1fr)
        8px
        minmax(260px, var(--editor-right-panel-width, 340px));
    gap: 0;
    padding: 8px;
}

.editor-panel {
    min-width: 0;
    min-height: 0;
    border: 1px solid var(--home-line);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.026);
    overflow: hidden;
}

.editor-panel-resizer {
    position: relative;
    min-width: 8px;
    cursor: col-resize;
}

.editor-panel-resizer::before {
    content: "";
    position: absolute;
    inset: 0 3px;
    border-radius: 999px;
    background: transparent;
    transition: background .16s ease;
}

.editor-panel-resizer:hover::before,
body.editor-is-resizing-panels .editor-panel-resizer::before {
    background: rgba(245, 158, 11, 0.16);
}

.editor-media-panel,
.editor-preview-panel,
.editor-inspector-panel {
    display: flex;
    flex-direction: column;
}

.editor-media-shell {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
}

.editor-media-shell.is-single {
    grid-template-columns: minmax(0, 1fr);
}

.editor-module-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.editor-module-tabs button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.editor-source-rail {
    min-height: 0;
    padding: 7px 5px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-right: 1px solid var(--home-line);
    background: rgba(0, 0, 0, 0.16);
}

.editor-source-rail button {
    height: 34px;
    width: 100%;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--home-muted);
    cursor: pointer;
    font-size: 12px;
    font-weight: 720;
    text-align: left;
    padding: 0 12px;
}

.editor-source-rail button:hover,
.editor-source-rail button.is-active {
    color: var(--home-text);
    background: rgba(255, 255, 255, 0.064);
}

.editor-media-content,
.editor-asset-browser,
.editor-settings-panel {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.editor-media-content,
.editor-asset-browser {
    flex: 1 1 auto;
}

.editor-asset-browser,
.editor-settings-panel {
    overflow: auto;
}

.editor-panel-tabs {
    height: 38px;
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 5px;
    border-bottom: 1px solid var(--home-line);
}

.editor-panel-tabs button {
    min-width: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--home-muted);
    font-size: 12px;
    font-weight: 690;
    cursor: pointer;
}

.editor-panel-tabs button:hover,
.editor-panel-tabs button.is-active {
    background: rgba(255, 255, 255, 0.064);
    color: var(--home-text);
}

.editor-media-head {
    height: 42px;
    flex: 0 0 auto;
    justify-content: space-between;
    padding: 0 12px;
}

.editor-media-head strong,
.editor-panel-title strong,
.editor-inspector-head strong {
    font-size: 13px;
    font-weight: 760;
}

.editor-drop-zone {
    min-height: 118px;
    margin: 0 12px 10px;
    display: grid;
    place-items: center;
    gap: 7px;
    padding: 15px;
    border: 1px dashed var(--home-line-strong);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.026);
    color: var(--home-muted);
    text-align: center;
    cursor: pointer;
}

.editor-drop-zone span,
.editor-drop-zone strong,
.editor-drop-zone small {
    display: block;
}

.editor-drop-zone strong {
    color: var(--home-text);
    font-size: 13px;
    font-weight: 760;
}

.editor-drop-zone small {
    max-width: 230px;
    color: var(--home-faint);
    font-size: 11px;
    line-height: 1.5;
}

.editor-drop-zone.is-drag-over {
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(245, 158, 11, 0.07);
}

.editor-add-text {
    height: 36px;
    margin: 0 12px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    color: var(--home-text);
    font-size: 12px;
    font-weight: 720;
}

.editor-asset-grid {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 10px;
    padding: 0 12px 12px;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.34) transparent;
}

.editor-audio-grid {
    flex: 0 0 auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    overflow: visible;
    padding-bottom: 10px;
}

.editor-audio-browser .editor-asset-card {
    min-height: 58px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
}

.editor-audio-browser .editor-asset-thumb {
    aspect-ratio: auto;
    min-height: 58px;
}

.editor-audio-browser .editor-audio-thumb {
    background: rgba(245, 158, 11, 0.08);
}

.editor-audio-browser .editor-asset-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.editor-audio-drop-zone {
    flex: 0 0 auto;
    min-height: 92px;
}

.editor-audio-head {
    min-height: 46px;
    border-bottom: 1px solid var(--home-line);
}

.editor-audio-search-row {
    display: block;
    padding: 12px 14px 8px;
}

.editor-audio-search {
    height: 36px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.editor-audio-search > svg {
    flex: 0 0 auto;
    margin-left: 10px;
    color: var(--home-faint);
}

.editor-audio-search input {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 0 12px 0 8px;
    background: transparent;
    color: var(--home-text);
    font-size: 13px;
}

.editor-audio-search input::placeholder {
    color: var(--home-faint);
}

.editor-audio-local-section {
    display: grid;
    gap: 8px;
    padding-top: 6px;
}

.editor-audio-local-section > strong {
    padding: 0 14px;
    color: var(--home-muted);
    font-size: 11px;
}

.editor-asset-empty {
    margin: 0 12px 12px;
    min-height: 138px;
    display: grid;
    place-items: center;
    gap: 7px;
    align-content: center;
    border: 1px dashed var(--home-line);
    border-radius: 8px;
    color: var(--home-faint);
    text-align: center;
}

.editor-asset-empty strong {
    color: var(--home-text);
    font-size: 12px;
    font-weight: 740;
}

.editor-asset-empty span {
    max-width: 220px;
    color: var(--home-muted);
    font-size: 11px;
    line-height: 1.45;
}

.editor-library-browser {
    padding: 0 10px 12px;
    gap: 10px;
}

.editor-library-tabs {
    height: 42px;
    display: flex;
    align-items: end;
    gap: 18px;
    border-bottom: 1px solid var(--home-line);
}

.editor-library-tabs button {
    height: 32px;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 0;
    background: transparent;
    color: var(--home-muted);
    cursor: pointer;
    font-size: 12px;
    font-weight: 730;
}

.editor-library-tabs button.is-active {
    color: var(--home-text);
}

.editor-library-tabs button.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    border-radius: 999px;
    background: #f59e0b;
}

.editor-library-tabs i {
    display: inline-grid;
    place-items: center;
    color: var(--home-faint);
    font-style: normal;
}

.editor-library-search-row {
    min-height: 36px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    align-items: center;
}

.editor-library-search {
    min-width: 0;
    height: 34px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 10px;
    border: 1px solid var(--home-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--home-muted);
}

.editor-library-search input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--home-text);
    font-size: 12px;
}

.editor-library-search input::placeholder {
    color: var(--home-faint);
}

.editor-library-icon-button {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--home-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--home-muted);
    cursor: pointer;
}

.editor-library-icon-button:hover,
.editor-library-filter button:hover {
    border-color: var(--home-line-strong);
    color: var(--home-text);
}

.editor-library-filter {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
}

.editor-library-filter button {
    min-width: 0;
    height: 34px;
    border: 1px solid var(--home-line);
    border-radius: 8px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--home-muted);
    cursor: pointer;
    font-size: 12px;
    font-weight: 690;
}

.editor-library-filter button.is-active {
    border-color: rgba(245, 158, 11, 0.46);
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
}

.editor-library-folder-list {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: auto;
    padding-right: 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.34) transparent;
}

.editor-library-folder-row {
    width: 100%;
    min-height: 34px;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    border: 0;
    border-radius: 7px;
    padding: 0 8px;
    background: transparent;
    color: var(--home-text);
    cursor: pointer;
    text-align: left;
}

.editor-library-folder-row:hover,
.editor-library-folder.is-open > .editor-library-folder-row {
    background: rgba(255, 255, 255, 0.055);
}

.editor-library-folder-caret {
    display: inline-grid;
    place-items: center;
    color: var(--home-muted);
    transition: transform .16s ease;
}

.editor-library-folder.is-open .editor-library-folder-caret {
    transform: rotate(90deg);
}

.editor-library-folder-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 730;
}

.editor-library-folder-count {
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    color: var(--home-faint);
    font-size: 10px;
    font-weight: 760;
}

.editor-library-folder-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 5px 0 10px 22px;
}

.editor-settings-list {
    display: grid;
    gap: 13px;
    padding: 0 12px 12px;
    overflow: auto;
}

.editor-settings-group {
    display: grid;
    gap: 8px;
}

.editor-settings-group > span {
    color: var(--home-muted);
    font-size: 11px;
    font-weight: 700;
}

.editor-aspect-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.editor-settings-dimensions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.editor-aspect-options button {
    height: 34px;
    border: 1px solid var(--home-line);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    color: var(--home-muted);
    cursor: pointer;
    font-size: 12px;
    font-weight: 730;
}

.editor-aspect-options button:hover,
.editor-aspect-options button.is-active {
    border-color: rgba(245, 158, 11, 0.52);
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.08);
}

.editor-asset-card {
    min-width: 0;
    border: 1px solid var(--home-line);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.18);
    overflow: hidden;
    cursor: grab;
}

.editor-asset-card:hover {
    border-color: var(--home-line-strong);
    background: rgba(255, 255, 255, 0.04);
}

.editor-asset-card:active {
    cursor: grabbing;
}

.editor-asset-card.is-selected {
    border-color: rgba(245, 158, 11, 0.58);
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.22);
}

.editor-project-asset-grid {
    padding-top: 0;
}

.editor-text-library {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.editor-text-template-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, 112px);
    align-content: start;
    gap: 10px;
    padding: 10px 12px 12px;
    overflow: auto;
}

.editor-text-template {
    width: 112px;
    height: 112px;
    position: relative;
    display: grid;
    place-items: center;
    padding: 12px;
    border: 1px solid var(--home-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    cursor: grab;
}

.editor-text-template:hover {
    border-color: var(--home-line-strong);
    background: rgba(255, 255, 255, 0.055);
}

.editor-text-template strong,
.editor-text-template span {
    display: block;
    min-width: 0;
}

.editor-text-template strong {
    color: var(--home-text);
    font-size: 12px;
    font-weight: 760;
    text-align: center;
}

.editor-text-template span {
    margin-top: 6px;
    color: var(--home-muted);
    font-size: 12px;
}

.editor-text-template button {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border: 1px solid var(--home-line);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.24);
    color: var(--home-text);
    cursor: pointer;
}

.editor-text-template button:hover {
    border-color: rgba(245, 158, 11, 0.48);
    color: #fbbf24;
}

.editor-asset-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #050607;
    overflow: hidden;
}

.editor-asset-thumb img,
.editor-asset-thumb video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.editor-audio-thumb {
    height: 100%;
    display: grid;
    place-items: center;
    color: #fbbf24;
}

.editor-asset-thumb button {
    position: absolute;
    right: 7px;
    bottom: 7px;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(5, 6, 7, 0.84);
    color: #fff;
}

.editor-asset-meta {
    padding: 8px;
}

.editor-asset-meta strong,
.editor-asset-meta span {
    min-width: 0;
    display: flex;
    align-items: center;
}

.editor-asset-meta strong {
    color: var(--home-text);
    font-size: 12px;
    font-weight: 730;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.editor-asset-meta span {
    gap: 5px;
    margin-top: 5px;
    color: var(--home-muted);
    font-size: 11px;
    white-space: nowrap;
}

.editor-panel-title {
    height: 40px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 13px;
    border-bottom: 1px solid var(--home-line);
}

.editor-panel-title span {
    color: var(--home-muted);
    font-size: 11px;
    font-weight: 740;
}

.editor-preview-wrap {
    position: relative;
    z-index: 0;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    overflow: hidden;
}

.editor-preview-stage {
    position: relative;
    width: auto;
    height: min(100%, 430px);
    max-width: min(82%, 780px);
    max-height: 100%;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 22px 56px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    transform: scale(var(--editor-preview-scale, 1));
    transform-origin: center;
    transition: transform .16s ease;
}

.editor-preview-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.42);
    font-size: 13px;
}

.editor-preview-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    transform-origin: center;
    pointer-events: auto;
}

.editor-preview-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-origin: center;
    pointer-events: none;
}

.editor-preview-media.is-fill {
    object-fit: cover;
}

.editor-preview-layer.is-selected,
.editor-preview-text.is-selected {
    outline: 1px dashed rgba(255, 255, 255, 0.82);
    outline-offset: 4px;
}

.editor-preview-panel:fullscreen {
    width: 100vw;
    height: 100vh;
    border: 0;
    border-radius: 0;
    background: #080a0d;
}

.editor-preview-panel:fullscreen .editor-preview-stage {
    height: min(92vh, 92vw);
    max-width: 96vw;
}

.editor-preview-text {
    position: absolute;
    left: 50%;
    top: 50%;
    min-width: 120px;
    padding: 10px 16px;
    z-index: 3;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.62);
    pointer-events: auto;
    white-space: pre-wrap;
    cursor: move;
    transform-origin: center;
    translate: -50% -50%;
    overflow-wrap: anywhere;
}

.editor-preview-transform-handles {
    position: absolute;
    inset: -9px;
    z-index: 12;
    pointer-events: none;
}

.editor-preview-transform-handle {
    position: absolute;
    width: 9px;
    height: 9px;
    border: 1px solid rgba(15, 23, 42, 0.55);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    pointer-events: auto;
}

.editor-preview-transform-handle.is-nw {
    left: -5px;
    top: -5px;
    cursor: nwse-resize;
}

.editor-preview-transform-handle.is-ne {
    right: -5px;
    top: -5px;
    cursor: nesw-resize;
}

.editor-preview-transform-handle.is-se {
    right: -5px;
    bottom: -5px;
    cursor: nwse-resize;
}

.editor-preview-transform-handle.is-sw {
    left: -5px;
    bottom: -5px;
    cursor: nesw-resize;
}

.editor-preview-transform-handle.is-rotate {
    left: 50%;
    top: -34px;
    transform: translateX(-50%);
    background: #f59e0b;
    border-color: rgba(120, 53, 15, 0.55);
    cursor: grab;
}

.editor-preview-transform-handle.is-rotate:active {
    cursor: grabbing;
}

.editor-preview-rotate-stem {
    position: absolute;
    left: 50%;
    top: -25px;
    width: 1px;
    height: 21px;
    transform: translateX(-50%);
    background: rgba(245, 158, 11, 0.72);
    pointer-events: none;
}

.editor-preview-text.is-editing {
    cursor: text;
}

.editor-preview-text.is-editing [data-editor-preview-text-content] {
    cursor: text;
    caret-color: #f59e0b;
}

.editor-preview-text-input {
    display: inline;
    min-width: 1ch;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    text-align: inherit;
    text-shadow: inherit;
    white-space: inherit;
    overflow-wrap: inherit;
    caret-color: #f59e0b;
}

.editor-preview-text-input::selection {
    background: rgba(245, 158, 11, 0.34);
}

.editor-preview-text small {
    display: block;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.78);
    font-size: .42em;
    line-height: 1.45;
}

.editor-preview-controls {
    position: relative;
    z-index: 2;
    height: 52px;
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: auto auto minmax(150px, 1fr) auto;
    gap: 13px;
    padding: 0 14px;
    border-top: 1px solid var(--home-line);
}

.editor-preview-actions {
    gap: 6px;
    position: relative;
}

.editor-preview-actions button {
    width: 30px;
    padding: 0;
}

.editor-preview-actions button.is-active {
    border-color: rgba(245, 158, 11, 0.48);
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.09);
}

.editor-preview-fit-control {
    position: relative;
}

.editor-preview-actions .editor-preview-fit-trigger {
    width: auto;
    min-width: 64px;
    padding: 0 10px;
}

.editor-preview-fit-trigger.is-open {
    border-color: rgba(245, 158, 11, 0.42);
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.09);
}

.editor-preview-fit-menu {
    position: fixed;
    z-index: 12024;
    width: 128px;
    padding: 7px;
    border: 1px solid var(--home-line-strong);
    border-radius: 8px;
    background: rgba(12, 14, 18, 0.98);
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.46);
}

.editor-preview-fit-menu button {
    width: 100%;
    height: 30px;
    justify-content: flex-start;
    gap: 8px;
    padding: 0 7px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--home-text);
}

.editor-preview-fit-menu button i {
    width: 12px;
    height: 12px;
}

.editor-preview-fit-menu button.is-active,
.editor-preview-fit-menu button:hover {
    color: var(--home-text);
    background: rgba(255, 255, 255, 0.07);
}

.editor-timecode {
    gap: 6px;
    color: var(--home-faint);
    font-size: 12px;
}

.editor-timecode strong {
    color: #f59e0b;
    font-weight: 760;
}

.editor-play-button {
    width: 38px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 8px;
}

.editor-scrubber,
.editor-timeline-tools input[type="range"] {
    accent-color: #f59e0b;
}

.editor-timeline-toolbar .editor-zoom-control input[type="range"] {
    accent-color: #38bdf8;
}

.editor-scrubber,
.editor-zoom-control input[type="range"] {
    height: 18px;
    touch-action: none;
}

.editor-scrubber::-webkit-slider-runnable-track,
.editor-zoom-control input[type="range"]::-webkit-slider-runnable-track {
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
}

.editor-scrubber::-webkit-slider-thumb,
.editor-zoom-control input[type="range"]::-webkit-slider-thumb {
    width: 14px;
    height: 14px;
    margin-top: -4px;
}

.editor-scrubber::-moz-range-track,
.editor-zoom-control input[type="range"]::-moz-range-track {
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
}

.editor-inspector-panel {
    padding: 13px;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.34) transparent;
}

.editor-project-manager {
    display: grid;
    gap: 16px;
}

.editor-project-manager-head {
    display: grid;
    gap: 6px;
    padding: 4px 0 2px;
}

.editor-project-manager-head strong {
    color: var(--home-text);
    font-size: 20px;
    font-weight: 760;
}

.editor-project-manager-head span {
    color: var(--home-muted);
    font-size: 13px;
    line-height: 1.45;
}

.editor-current-project-card {
    display: grid;
    gap: 12px;
    padding: 13px;
    border: 1px solid var(--home-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
}

.editor-project-title-field {
    display: grid;
    gap: 7px;
}

.editor-project-title-field span,
.editor-project-section-title span {
    color: var(--home-muted);
    font-size: 11px;
    font-weight: 760;
    text-transform: uppercase;
}

.editor-project-title-field input {
    height: 34px;
    width: 100%;
    padding: 0 10px;
    border: 1px solid var(--home-line);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.18);
    color: var(--home-text);
    font-size: 13px;
    font-weight: 720;
}

.editor-project-meta,
.editor-project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.editor-project-meta span {
    height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 999px;
    color: var(--home-muted);
    font-size: 11px;
}

.editor-project-actions button {
    height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 10px;
    border: 1px solid var(--home-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--home-text);
    font-size: 12px;
    font-weight: 720;
    cursor: pointer;
}

.editor-project-actions button:hover {
    border-color: rgba(56, 189, 248, 0.38);
    color: #e0f2fe;
    background: rgba(56, 189, 248, 0.08);
}

.editor-project-list-section {
    display: grid;
    gap: 9px;
}

.editor-project-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.editor-project-section-title small {
    color: var(--home-faint);
    font-size: 11px;
    font-weight: 720;
}

.editor-project-list {
    display: grid;
    gap: 8px;
}

.editor-project-list-item {
    min-height: 46px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 10px;
    padding: 9px 11px;
    border: 1px solid var(--home-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--home-text);
    text-align: left;
    cursor: pointer;
}

.editor-project-list-item:hover,
.editor-project-list-item:focus-visible {
    border-color: rgba(56, 189, 248, 0.34);
    background: rgba(56, 189, 248, 0.045);
    outline: 0;
}

.editor-project-list-item strong,
.editor-project-list-item span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.editor-project-list-item strong {
    font-size: 13px;
    font-weight: 760;
}

.editor-project-list-item span {
    grid-column: 1;
    color: var(--home-muted);
    font-size: 11px;
}

.editor-project-list-item svg {
    grid-row: 1 / span 2;
    grid-column: 2;
    color: #38bdf8;
}

.editor-project-list-item.is-active {
    border-color: rgba(56, 189, 248, 0.72);
    background: rgba(56, 189, 248, 0.07);
}

.editor-project-list-item.is-renaming {
    cursor: text;
}

.editor-project-list-name-input {
    min-width: 0;
    height: 28px;
    grid-column: 1;
    padding: 0 8px;
    border: 1px solid rgba(56, 189, 248, 0.48);
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.26);
    color: var(--home-text);
    font-size: 13px;
    font-weight: 760;
    outline: 0;
}

.editor-project-menu {
    position: fixed;
    z-index: 12030;
    width: 200px;
    display: grid;
    gap: 2px;
    padding: 6px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    background: rgba(12, 14, 18, 0.98);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.editor-project-menu button {
    min-height: 32px;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 0 8px;
    border: 0;
    border-radius: 6px;
    color: var(--home-text);
    background: transparent;
    font-size: 12px;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
}

.editor-project-menu button:hover,
.editor-project-menu button:focus-visible {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    outline: 0;
}

.editor-project-menu button.is-danger {
    color: #fca5a5;
}

.editor-project-menu button.is-danger:hover,
.editor-project-menu button.is-danger:focus-visible {
    background: rgba(239, 68, 68, 0.13);
    color: #fecaca;
}

.editor-project-menu span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.editor-project-menu i {
    display: block;
    height: 1px;
    margin: 4px 2px;
    background: rgba(148, 163, 184, 0.16);
}

.editor-scenes-panel {
    display: grid;
    gap: 12px;
}

.editor-scenes-panel header strong {
    font-size: 17px;
}

.editor-scenes-select {
    width: fit-content;
    height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid var(--home-line-strong);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--home-text);
    font-size: 12px;
    font-weight: 720;
}

.editor-scene-list {
    display: grid;
    gap: 8px;
}

.editor-scene-item {
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 12px;
    border: 1px solid rgba(56, 189, 248, 0.72);
    border-radius: 10px;
    background: rgba(56, 189, 248, 0.06);
    color: #38bdf8;
    font-size: 13px;
    font-weight: 700;
}

.editor-inspector-empty {
    flex: 1 1 auto;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--home-muted);
    text-align: center;
}

.editor-inspector-empty > svg {
    margin-bottom: 13px;
    color: var(--home-faint);
}

.editor-inspector-empty strong {
    color: var(--home-text);
    font-size: 18px;
    font-weight: 760;
}

.editor-inspector-empty span {
    margin-top: 8px;
    color: var(--home-muted);
    font-size: 12px;
}

.editor-inspector-empty .editor-rendered-empty {
    width: min(100%, 300px);
    margin-top: 18px;
}

.editor-inspector-head {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--home-line);
}

.editor-inspector-head span {
    display: block;
    margin-top: 5px;
    color: var(--home-muted);
    font-size: 12px;
}

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

.editor-field {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.editor-field-full {
    grid-column: 1 / -1;
}

.editor-inspector-section-title {
    margin-top: 2px;
    color: var(--home-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
}

.editor-field span {
    color: var(--home-muted);
    font-size: 11px;
    font-weight: 700;
}

.editor-field input,
.editor-field select,
.editor-field textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--home-line);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.22);
    color: var(--home-text);
    padding: 8px 9px;
    font-size: 12px;
    outline: none;
    user-select: text;
}

.editor-field select,
.editor-field select option {
    background: #0b0d10;
    color: var(--home-text);
}

.editor-field select option:checked {
    background: #2a1c08;
    color: #ffd08a;
}

.editor-field-select {
    position: relative;
}

.editor-inline-select {
    position: relative;
    width: 100%;
}

.editor-inline-select-trigger {
    width: 100%;
    height: 35px;
    border: 1px solid var(--home-line);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.26);
    color: var(--home-text);
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 9px;
    cursor: pointer;
    outline: none;
    user-select: none;
}

.editor-inline-select-trigger strong {
    min-width: 0;
    overflow: hidden;
    color: var(--home-text);
    font-size: 12px;
    font-weight: 720;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.editor-inline-select-trigger svg {
    flex: 0 0 auto;
    color: var(--home-muted);
    transition: transform .16s ease, color .16s ease;
}

.editor-inline-select:focus-within .editor-inline-select-trigger,
.editor-inline-select-trigger:hover {
    border-color: rgba(245, 158, 11, 0.52);
    background: rgba(245, 158, 11, 0.08);
}

.editor-inline-select:focus-within .editor-inline-select-trigger svg {
    color: #f59e0b;
    transform: rotate(180deg);
}

.editor-inline-select-menu {
    position: absolute;
    z-index: 70;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    display: none;
    padding: 5px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    background: rgba(8, 10, 14, 0.98);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.42);
}

.editor-inline-select:focus-within .editor-inline-select-menu {
    display: grid;
    gap: 2px;
}

.editor-inline-select-menu button {
    width: 100%;
    min-height: 30px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--home-text);
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    padding: 0 8px;
    cursor: pointer;
    text-align: left;
}

.editor-inline-select-menu button:hover,
.editor-inline-select-menu button:focus-visible,
.editor-inline-select-menu button.is-active {
    background: rgba(245, 158, 11, 0.13);
    color: #ffd08a;
}

.editor-inline-select-menu button.is-active i {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #f59e0b;
}

.editor-select-field {
    position: relative;
}

.editor-select-trigger {
    width: 100%;
    height: 35px;
    border: 1px solid var(--home-line);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.26);
    color: var(--home-text);
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 9px 0 10px;
    cursor: pointer;
    outline: none;
    user-select: none;
}

.editor-field input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.editor-field input[type="number"]::-webkit-outer-spin-button,
.editor-field input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.editor-select-trigger strong {
    font-size: 12px;
    font-weight: 720;
}

.editor-select-trigger svg {
    color: var(--home-muted);
    transition: transform .16s ease, color .16s ease;
}

.editor-select-trigger:hover,
.editor-select-trigger:focus-visible,
.editor-select-trigger.is-open {
    border-color: rgba(245, 158, 11, 0.52);
    background: rgba(245, 158, 11, 0.08);
}

.editor-select-trigger.is-open svg {
    color: #f59e0b;
    transform: rotate(180deg);
}

.editor-select-menu {
    position: absolute;
    z-index: 45;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    padding: 5px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    background: rgba(8, 10, 14, 0.98);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.42);
}

.editor-select-menu button {
    width: 100%;
    min-height: 30px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--home-text);
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    padding: 0 8px;
    cursor: pointer;
    text-align: left;
}

.editor-select-menu button:hover,
.editor-select-menu button:focus-visible,
.editor-select-menu button.is-active {
    background: rgba(245, 158, 11, 0.13);
    color: #ffd08a;
}

.editor-select-menu i {
    width: 12px;
    height: 12px;
}

.editor-color-field input[type="color"] {
    height: 34px;
    padding: 3px;
    cursor: pointer;
}

.editor-color-field input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.editor-color-field input[type="color"]::-webkit-color-swatch {
    border: 0;
    border-radius: 6px;
}

.editor-color-field input[type="color"]::-moz-color-swatch {
    border: 0;
    border-radius: 6px;
}

.editor-field textarea {
    min-height: 86px;
    resize: vertical;
}

.editor-checkbox-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 10px;
    border: 1px solid var(--home-line);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.18);
}

.editor-checkbox-field input {
    width: auto;
    min-width: 0;
    padding: 0;
    accent-color: #f59e0b;
}

.editor-checkbox-field span {
    color: var(--home-muted);
    font-size: 11px;
    font-weight: 700;
}

.editor-field input:focus,
.editor-field select:focus,
.editor-field textarea:focus {
    border-color: rgba(245, 158, 11, 0.52);
}

.editor-inspector-actions {
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 13px;
    margin-top: 13px;
    border-top: 1px solid var(--home-line);
}

.editor-inspector-actions button {
    flex: 1 1 92px;
}

.editor-inspector-actions .is-danger {
    color: #fecaca;
}

.editor-rendered-empty,
.editor-rendered-card {
    margin-top: 14px;
    padding: 12px;
    border: 1px solid var(--home-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.026);
}

.editor-rendered-empty strong,
.editor-rendered-card strong {
    display: block;
    color: var(--home-text);
    font-size: 12px;
    font-weight: 760;
}

.editor-rendered-empty span {
    display: block;
    margin-top: 7px;
    color: var(--home-muted);
    font-size: 11px;
    line-height: 1.5;
}

.editor-rendered-card video {
    width: 100%;
    margin-top: 10px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 7px;
}

.editor-rendered-card > div {
    justify-content: space-between;
    gap: 10px;
    margin-top: 9px;
    color: var(--home-muted);
    font-size: 11px;
}

.editor-rendered-card a {
    color: #fbbf24;
    text-decoration: none;
}

.editor-timeline-panel {
    height: 420px;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.075);
    background: linear-gradient(to bottom, rgba(18, 20, 24, 0.98), rgba(12, 14, 18, 0.98));
}

.editor-timeline-resizer {
    height: 8px;
    flex: 0 0 auto;
    border-top: 1px solid var(--home-line);
    border-bottom: 1px solid var(--home-line);
    background: rgba(255, 255, 255, 0.018);
    cursor: row-resize;
}

.editor-timeline-resizer:hover,
body.editor-is-resizing-timeline .editor-timeline-resizer {
    background: rgba(245, 158, 11, 0.09);
}

.editor-timeline-toolbar {
    height: 38px;
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 0 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
    background: rgba(16, 18, 22, 0.98);
}

.editor-timeline-tools {
    gap: 7px;
}

.editor-timeline-tools.is-right {
    justify-content: flex-end;
}

.editor-timeline-divider {
    flex: 0 0 auto;
    width: 1px;
    height: 22px;
    margin: 0 2px;
    background: rgba(148, 163, 184, 0.16);
}

.editor-timeline-zoom-group {
    height: 28px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 2px;
}

.editor-timeline-center {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
}

.editor-timeline-scene,
.editor-timeline-mode-hint {
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--home-text);
    font-size: 12px;
    white-space: nowrap;
}

.editor-timeline-scene {
    padding: 0 11px;
    cursor: pointer;
}

.editor-timeline-scene.is-open {
    border-color: rgba(56, 189, 248, 0.46);
    color: #e5f7ff;
    background: rgba(56, 189, 248, 0.10);
}

.editor-timeline-scene strong {
    font-size: 12px;
    font-weight: 620;
}

.editor-timeline-scene svg {
    color: var(--home-muted);
}

.editor-scene-overlay {
    position: fixed;
    inset: 0;
    z-index: 95;
    display: flex;
    justify-content: flex-end;
    pointer-events: auto;
}

body[data-octap-home-route="editor"] .editor-scene-overlay {
    inset: 0;
}

.editor-scene-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.56);
    cursor: default;
}

.editor-scene-drawer {
    position: relative;
    z-index: 1;
    width: min(440px, calc(100vw - 48px));
    height: 100%;
    padding: 26px 22px;
    border-left: 1px solid var(--home-line);
    background: rgba(13, 15, 19, 0.98);
    box-shadow: -28px 0 70px rgba(0, 0, 0, 0.44);
    animation: editorSceneDrawerIn .18s ease-out;
    overflow: auto;
}

.editor-scene-drawer.is-stable {
    animation: none;
}

.editor-scene-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--home-muted);
    cursor: pointer;
}

.editor-scene-close:hover {
    color: var(--home-text);
    background: rgba(255, 255, 255, 0.06);
}

.editor-scene-drawer .editor-scenes-panel {
    margin-top: 2px;
}

.editor-scene-drawer .editor-scenes-panel header {
    padding-right: 34px;
}

@keyframes editorSceneDrawerIn {
    from {
        opacity: .72;
        transform: translateX(34px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.editor-timeline-mode-hint {
    position: absolute;
    right: 16px;
    bottom: 14px;
    z-index: 38;
    pointer-events: none;
    padding: 0 10px;
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.28);
    background: rgba(56, 189, 248, 0.08);
}

.editor-timeline-tools .editor-tool-button {
    width: 30px;
    padding: 0;
}

.editor-timeline-tools button.is-active {
    border-color: rgba(56, 189, 248, 0.42);
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.10);
}

.editor-timeline-tools [data-editor-action="toggle-snap"].is-active {
    border-color: rgba(56, 189, 248, 0.42);
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.10);
}

.editor-timeline-panel.is-blade-mode .editor-track-lane,
.editor-timeline-panel.is-blade-mode .editor-clip {
    cursor: crosshair;
}

.editor-blade-guide {
    position: fixed;
    z-index: 12009;
    width: 2px;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        rgba(125, 211, 252, 0.96) 0,
        rgba(125, 211, 252, 0.96) 7px,
        transparent 7px,
        transparent 13px
    );
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.20);
}

.editor-blade-guide::before {
    content: "";
    position: absolute;
    top: 0;
    left: -4px;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #38bdf8;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.72);
}

.editor-blade-guide span {
    position: absolute;
    top: 8px;
    left: 7px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    padding: 0 7px;
    border: 1px solid rgba(56, 189, 248, 0.34);
    border-radius: 999px;
    background: rgba(8, 13, 19, 0.92);
    color: #7dd3fc;
    font-size: 10px;
    font-weight: 720;
    white-space: nowrap;
}

.editor-timeline-tools label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--home-muted);
    font-size: 11px;
    font-weight: 700;
}

.editor-zoom-control input {
    width: 112px;
}

.editor-timeline-scroll {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(74, 85, 101, 0.62) transparent;
    transition: box-shadow .08s ease;
}

.editor-timeline-scroll.is-edge-panning-left {
    box-shadow:
        inset 2px 0 0 rgba(56, 189, 248, 0.86),
        inset 48px 0 42px -24px rgba(56, 189, 248, 0.36);
}

.editor-timeline-scroll.is-edge-panning-right {
    box-shadow:
        inset -2px 0 0 rgba(56, 189, 248, 0.86),
        inset -48px 0 42px -24px rgba(56, 189, 248, 0.36);
}

.editor-timeline-scroll::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

.editor-timeline-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.editor-timeline-scroll::-webkit-scrollbar-thumb {
    border: 3px solid transparent;
    border-radius: 999px;
    background: rgba(74, 85, 101, 0.68);
    background-clip: padding-box;
}

.editor-timeline-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.82);
    background-clip: padding-box;
}

.editor-timeline-scrollbar {
    position: relative;
    z-index: 31;
    flex: 0 0 22px;
    display: flex;
    align-items: center;
    padding: 0 50px 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
    background: rgba(10, 12, 16, 0.98);
    outline: none;
    user-select: none;
}

.editor-timeline-scrollbar-track {
    position: relative;
    width: 100%;
    height: 7px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.11);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    cursor: ew-resize;
    overflow: hidden;
}

.editor-timeline-scrollbar-thumb {
    position: absolute;
    left: 0;
    top: 0;
    width: 80px;
    height: 100%;
    border-radius: inherit;
    background: rgba(148, 163, 184, 0.27);
    box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.05);
    cursor: grab;
    transform: translateX(0);
    transition: background-color 120ms ease, box-shadow 120ms ease;
    will-change: transform, width;
}

.editor-timeline-scrollbar:hover .editor-timeline-scrollbar-thumb,
.editor-timeline-scrollbar:focus-visible .editor-timeline-scrollbar-thumb {
    background: rgba(203, 213, 225, 0.32);
    box-shadow: inset 0 0 0 1px rgba(241, 245, 249, 0.07);
}

.editor-timeline-scrollbar.is-dragging .editor-timeline-scrollbar-thumb {
    cursor: grabbing;
    background: rgba(226, 232, 240, 0.35);
}

.editor-timeline-scrollbar.is-disabled .editor-timeline-scrollbar-track {
    cursor: default;
    background: rgba(148, 163, 184, 0.06);
}

.editor-timeline-scrollbar.is-disabled .editor-timeline-scrollbar-thumb {
    box-shadow: none;
    background: rgba(148, 163, 184, 0.21);
    cursor: default;
}

.editor-timeline-scrollbar.is-disabled {
    opacity: .62;
}

.editor-timeline-bottom-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 22px;
    z-index: 24;
    height: 72px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(9, 11, 15, 0), rgba(9, 11, 15, 0.90));
}

.editor-timeline-content {
    position: relative;
    width: 100%;
    min-height: 100%;
    background-color: #111318;
}

.editor-track-stack {
    position: relative;
}

.editor-timeline-content.is-centered-timeline .editor-track-stack {
    position: absolute;
    left: 0;
    right: 0;
    top: 46px;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 44px;
}

.editor-timeline-content.is-centered-timeline .editor-track-row {
    flex: 0 0 auto;
}

.editor-ruler-row,
.editor-marker-row,
.editor-track-row {
    display: flex;
}

.editor-ruler-row {
    position: sticky;
    top: 0;
    z-index: 10;
    height: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
    background: #1c2025;
}

.editor-marker-row {
    position: sticky;
    top: 32px;
    z-index: 9;
    height: 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    background: linear-gradient(to bottom, #15181d, #111318);
}

.editor-track-corner,
.editor-track-head {
    width: 112px;
    flex: 0 0 112px;
    background: #101318;
    border-right: 1px solid rgba(255, 255, 255, 0.055);
    box-shadow: 10px 0 22px rgba(0, 0, 0, 0.18);
}

.editor-track-corner {
    position: sticky;
    left: 0;
    z-index: 30;
}

.editor-track-head {
    position: sticky;
    left: 0;
    z-index: 28;
}

.editor-ruler {
    position: relative;
    flex: 1 0 auto;
    cursor: pointer;
}

.editor-marker-lane {
    position: relative;
    flex: 1 0 auto;
}

.editor-marker-corner {
    background: #101318;
}

.editor-ruler-mark {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.072);
    font-style: normal;
}

.editor-ruler-mark.is-frame {
    background: rgba(255, 255, 255, 0.045);
}

.editor-ruler-mark.is-half-second {
    background: rgba(255, 255, 255, 0.06);
}

.editor-ruler-mark span {
    position: absolute;
    left: 6px;
    top: 8px;
    color: var(--home-faint);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.editor-ruler-mark:first-child span {
    color: #38bdf8;
    font-weight: 720;
}

.editor-track-row {
    position: relative;
    min-height: 72px;
}

.editor-track-row-text {
    min-height: 46px;
}

.editor-track-row-text .editor-track-head,
.editor-track-row-text .editor-track-lane {
    min-height: 46px;
}

.editor-track-row:not(.editor-track-row-new) .editor-track-lane {
    box-shadow: inset 0 -4px 0 #111318;
}

.editor-track-row:not(.editor-track-row-new) .editor-track-lane:not(:has(.editor-clip))::before {
    content: "";
    position: absolute;
    inset: 9px 8px 11px;
    border: 2px dashed rgba(148, 163, 184, 0.14);
    border-radius: 4px;
    pointer-events: none;
}

body.editor-is-dragging-asset .editor-track-row:not(.editor-track-row-new) .editor-track-lane:not(:has(.editor-clip))::before,
body.editor-is-dragging-text .editor-track-row:not(.editor-track-row-new) .editor-track-lane:not(:has(.editor-clip))::before {
    display: none;
}

.editor-track-row.is-locked .editor-track-head {
    color: rgba(148, 163, 184, 0.72);
    background: #05070a;
}

.editor-track-row.is-locked .editor-track-lane {
    background-color: rgba(15, 23, 42, 0.32);
}

.editor-track-head {
    display: flex;
    justify-content: center;
    padding: 0 7px;
}

.editor-track-head strong {
    display: none;
    color: var(--home-text);
    font-size: 12px;
    font-weight: 720;
}

.editor-track-head > div {
    gap: 6px;
    justify-content: center;
}

.editor-track-head button {
    width: 23px;
    height: 22px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: var(--home-faint);
    font-size: 10px;
    cursor: pointer;
}

.editor-track-head button:hover {
    border-color: rgba(56, 189, 248, 0.24);
    color: rgba(226, 232, 240, 0.86);
    background: rgba(56, 189, 248, 0.055);
}

.editor-track-head button svg {
    width: 12px;
    height: 12px;
}

.editor-track-head button.is-active {
    border-color: rgba(56, 189, 248, 0.22);
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.075);
}

.editor-track-lane {
    position: relative;
    flex: 1 0 auto;
    min-height: 72px;
    background-color: #16181d;
    cursor: pointer;
}

.editor-track-row.is-drop-target .editor-track-head {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.055);
}

.editor-track-row.is-drop-target .editor-track-lane {
    background-color: #17202a;
}

.editor-track-row.is-drop-blocked .editor-track-lane {
    box-shadow:
        inset 0 0 0 2px rgba(248, 113, 113, 0.72),
        inset 0 0 24px rgba(248, 113, 113, 0.1);
}

.editor-track-row-new .editor-track-head {
    color: var(--home-muted);
}

.editor-track-row-new {
    display: none;
}

body[data-editor-drag-track="video"] .editor-track-row-new[data-editor-new-track="video"],
body[data-editor-drag-track="audio"] .editor-track-row-new[data-editor-new-track="audio"],
body[data-editor-drag-track="text"] .editor-track-row-new[data-editor-new-track="text"] {
    display: flex;
}

.editor-track-row-new .editor-track-lane {
    min-height: 52px;
    border: 1px dashed rgba(148, 163, 184, 0.18);
    border-left: 0;
    display: grid;
    place-items: center start;
    color: var(--home-faint);
}

.editor-track-row-new .editor-new-track-hint {
    align-self: center;
    justify-self: start;
    position: sticky;
    left: 128px;
    margin-left: 16px;
    min-height: 24px;
    padding: 4px 10px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 7px;
    display: grid;
    place-items: center;
    font-size: 11px;
    color: rgba(148, 163, 184, 0.72);
    background: rgba(15, 23, 42, 0.48);
}

.editor-track-row-new.is-drop-target .editor-new-track-hint {
    border-color: rgba(125, 211, 252, 0.45);
    color: #e0f2fe;
    background: rgba(8, 47, 73, 0.74);
    box-shadow: 0 8px 18px rgba(8, 47, 73, 0.24);
}

.editor-timeline-marker {
    position: absolute;
    top: 1px;
    z-index: 2;
    width: 14px;
    height: 14px;
    display: grid;
    place-items: center;
    transform: translateX(-7px);
    border: 0;
    border-radius: 5px;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.18);
    cursor: pointer;
}

.editor-timeline-marker:hover {
    color: #7dd3fc;
    background: rgba(56, 189, 248, 0.22);
}

.editor-clip {
    position: absolute;
    top: 9px;
    height: 52px;
    min-width: 36px;
    display: block;
    padding: 0;
    border: 0;
    border-radius: 4px;
    color: #fff;
    cursor: grab;
    overflow: hidden;
    user-select: none;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.editor-clip:active {
    cursor: grabbing;
}

.editor-clip.is-selected {
    box-shadow: 0 0 0 1.5px #38bdf8;
}

.editor-clip.is-dragging {
    z-index: 14;
    opacity: .96;
    cursor: grabbing;
    transform: translateY(-1px);
    box-shadow:
        0 12px 26px rgba(0, 0, 0, 0.34),
        0 0 0 1px rgba(56, 189, 248, 0.28),
        0 0 22px rgba(56, 189, 248, 0.18);
}

.editor-clip.is-locked {
    cursor: not-allowed;
    opacity: .78;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.26);
}

.editor-clip.is-locked .editor-trim {
    display: none;
}

.editor-clip-image {
    background: linear-gradient(135deg, #2a2f38, #111827);
}

.editor-clip-video {
    background: linear-gradient(135deg, #1f2937, #0f172a);
}

.editor-clip-audio {
    background: linear-gradient(135deg, #312e81, #1e1b4b);
}

.editor-clip-text {
    background: linear-gradient(135deg, #78350f, #422006);
}

.editor-track-row-text .editor-clip {
    top: 7px;
    height: 30px;
}

.editor-clip-compound {
    background: linear-gradient(135deg, #164e63, #0f172a);
}

.editor-drop-preview {
    position: fixed;
    z-index: 12012;
    min-width: 36px;
    display: grid;
    align-content: center;
    gap: 2px;
    padding: 0 10px;
    border: 1px dashed rgba(125, 211, 252, 0.62);
    border-radius: 8px;
    color: #e0f2fe;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
    box-shadow:
        inset 0 0 0 1px rgba(56, 189, 248, 0.16),
        0 10px 24px rgba(8, 13, 19, 0.30);
    opacity: .92;
}

.editor-drop-preview strong,
.editor-drop-preview span {
    position: relative;
    z-index: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.editor-drop-preview strong {
    font-size: 11px;
    font-weight: 780;
}

.editor-drop-preview span {
    color: rgba(224, 242, 254, 0.78);
    font-size: 10px;
    font-weight: 680;
}

.editor-drop-preview::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.12) 56%, rgba(0, 0, 0, 0.36));
    pointer-events: none;
}

.editor-drop-preview-image,
.editor-drop-preview-video {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.84), rgba(15, 23, 42, 0.84));
}

.editor-drop-preview-audio {
    background: linear-gradient(135deg, rgba(49, 46, 129, 0.82), rgba(30, 27, 75, 0.82));
}

.editor-drop-preview-text {
    background: linear-gradient(135deg, rgba(120, 53, 15, 0.82), rgba(66, 32, 6, 0.82));
}

.editor-drop-preview.is-moving-clip {
    opacity: .82;
    border-style: dashed;
    box-shadow:
        inset 0 0 0 1px rgba(56, 189, 248, 0.12),
        0 8px 22px rgba(8, 13, 19, 0.24);
}

.editor-drop-preview.is-blocked {
    border-color: rgba(248, 113, 113, 0.76);
    color: #fee2e2;
    box-shadow:
        inset 0 0 0 1px rgba(248, 113, 113, 0.18),
        0 10px 24px rgba(8, 13, 19, 0.30);
}

.editor-clip-thumbs {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: auto 100%;
    background-position: left center;
    background-repeat: repeat-x;
}

.editor-clip-wave {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    opacity: .82;
}

.editor-clip-wave b {
    width: 4px;
    height: 18px;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.76);
}

.editor-clip-wave b:nth-child(2),
.editor-clip-wave b:nth-child(5) {
    height: 30px;
}

.editor-clip-wave b:nth-child(3) {
    height: 38px;
}

.editor-clip-text-thumbs {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, 0.18)),
        linear-gradient(135deg, #78350f, #422006);
}

.editor-clip-text-thumbs span {
    flex: 0 0 104px;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-right: 1px solid rgba(251, 191, 36, 0.13);
    color: rgba(255, 255, 255, 0.86);
    font-size: 12px;
    font-weight: 780;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.editor-clip-text-thumbs span:nth-child(odd) {
    background: rgba(0, 0, 0, 0.12);
}

.editor-clip-compound-thumbs {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(8, 47, 73, 0.52), rgba(15, 23, 42, 0.42)),
        linear-gradient(135deg, #164e63, #0f172a);
}

.editor-clip-compound-thumbs span {
    flex: 1 1 48px;
    min-width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 8px;
    border-right: 1px solid rgba(125, 211, 252, 0.14);
    color: rgba(224, 242, 254, 0.86);
    font-size: 10px;
    font-weight: 760;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.editor-clip-compound-thumbs span.is-thumb {
    padding: 0;
    background-position: center;
    background-size: cover;
    color: transparent;
}

.editor-clip-compound-thumbs span.is-text {
    background: rgba(124, 45, 18, 0.66);
    color: rgba(255, 247, 237, 0.92);
}

.editor-clip-label {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    height: 20px;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    padding: 3px 8px 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.38), transparent);
    pointer-events: none;
}

.editor-clip-label strong {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    color: rgba(255, 255, 255, 0.82);
    font-size: 10px;
    font-weight: 640;
    line-height: 1.2;
}

.editor-clip-menu,
.editor-asset-menu {
    position: fixed;
    z-index: 12020;
    width: 212px;
    display: grid;
    gap: 2px;
    padding: 6px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    background: rgba(12, 14, 18, 0.98);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.editor-asset-menu {
    width: 220px;
}

.editor-clip-menu-submenu {
    position: relative;
}

.editor-clip-menu-note {
    margin: 2px 4px 4px;
    padding: 5px 7px;
    border-radius: 6px;
    color: rgba(226, 232, 240, 0.76);
    background: rgba(148, 163, 184, 0.1);
    font-size: 11px;
    font-weight: 700;
}

.editor-clip-menu button,
.editor-asset-menu button,
.editor-clip-submenu button {
    min-height: 32px;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 0 8px;
    border: 0;
    border-radius: 6px;
    color: var(--home-text);
    background: transparent;
    font-size: 12px;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
}

.editor-clip-menu button:hover:not(:disabled),
.editor-clip-menu button:focus-visible:not(:disabled),
.editor-asset-menu button:hover:not(:disabled),
.editor-asset-menu button:focus-visible:not(:disabled),
.editor-clip-menu-submenu:hover > button:not(:disabled),
.editor-clip-submenu button:hover:not(:disabled),
.editor-clip-submenu button:focus-visible:not(:disabled) {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    outline: 0;
}

.editor-clip-menu button:disabled,
.editor-asset-menu button:disabled,
.editor-clip-submenu button:disabled {
    color: rgba(148, 163, 184, 0.4);
    cursor: default;
}

.editor-clip-menu button.is-danger,
.editor-clip-submenu button.is-danger {
    color: #fca5a5;
}

.editor-clip-menu button.is-danger:hover:not(:disabled),
.editor-clip-menu button.is-danger:focus-visible:not(:disabled),
.editor-clip-submenu button.is-danger:hover:not(:disabled),
.editor-clip-submenu button.is-danger:focus-visible:not(:disabled) {
    background: rgba(239, 68, 68, 0.13);
    color: #fecaca;
}

.editor-clip-menu span,
.editor-asset-menu span,
.editor-clip-submenu span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.editor-clip-menu kbd,
.editor-clip-submenu kbd {
    color: var(--home-faint);
    font: inherit;
    font-size: 10px;
    font-weight: 700;
}

.editor-clip-submenu {
    position: absolute;
    top: -6px;
    left: calc(100% + 6px);
    width: 120px;
    display: none;
    gap: 2px;
    padding: 6px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    background: rgba(12, 14, 18, 0.98);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.editor-clip-menu-submenu:hover .editor-clip-submenu,
.editor-clip-menu-submenu:focus-within .editor-clip-submenu {
    display: grid;
}

.editor-clip-menu-submenu.is-disabled .editor-clip-submenu {
    display: none;
}

.editor-clip-menu i,
.editor-asset-menu i {
    display: block;
    height: 1px;
    margin: 4px 2px;
    background: rgba(148, 163, 184, 0.16);
}

.editor-timeline-selection-box {
    position: fixed;
    z-index: 12010;
    pointer-events: none;
    border: 2px dashed rgba(125, 211, 252, 0.98);
    border-radius: 5px;
    background: rgba(56, 189, 248, 0.16);
    box-shadow: 0 0 0 1px rgba(7, 89, 133, 0.34) inset, 0 0 28px rgba(56, 189, 248, 0.24);
}

.editor-timeline-selection-label {
    position: absolute;
    right: -1px;
    bottom: -28px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 999px;
    background: rgba(8, 13, 19, 0.92);
    color: #7dd3fc;
    font-size: 11px;
    font-weight: 620;
    white-space: nowrap;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.editor-timeline-drag-time-tooltip {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 12020;
    height: 22px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 8px;
    border: 1px solid rgba(56, 189, 248, 0.34);
    border-radius: 999px;
    background: rgba(8, 13, 19, 0.94);
    color: #7dd3fc;
    font-size: 10px;
    font-weight: 760;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.26), 0 0 18px rgba(56, 189, 248, 0.16);
}

.editor-timeline-drag-time-tooltip.is-copy {
    border-color: rgba(125, 211, 252, 0.52);
    background: rgba(6, 20, 30, 0.96);
    color: #e0f2fe;
}

.editor-timeline-drag-time-tooltip.is-copy::before {
    content: "复制";
    height: 16px;
    display: inline-flex;
    align-items: center;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.16);
    color: #7dd3fc;
    font-size: 9px;
    font-weight: 820;
}

.editor-timeline-drag-time-tooltip.is-blocked {
    border-color: rgba(248, 113, 113, 0.62);
    background: rgba(31, 11, 13, 0.96);
    color: #fecaca;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28), 0 0 18px rgba(248, 113, 113, 0.18);
}

.editor-timeline-drag-time-tooltip.is-blocked::before {
    content: "\4e0d\53ef\653e\7f6e";
    height: 16px;
    display: inline-flex;
    align-items: center;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(248, 113, 113, 0.16);
    color: #fecaca;
    font-size: 9px;
    font-weight: 820;
}

.editor-timeline-drop-guide {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 12011;
    width: 0;
    min-height: 24px;
    transform: translateX(-0.5px);
    pointer-events: none;
    border-left: 1px dashed rgba(125, 211, 252, 0.72);
    background: transparent;
    box-shadow: none;
}

.editor-timeline-drop-guide::before {
    display: none;
}

.editor-timeline-drop-guide.is-blocked {
    border-left-color: rgba(248, 113, 113, 0.72);
}

.editor-trim {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 12px;
    z-index: 4;
    cursor: ew-resize;
    opacity: 1;
    background: transparent;
}

.editor-trim.is-left {
    left: 0;
}

.editor-trim.is-right {
    right: 0;
}

.editor-clip:hover .editor-trim,
.editor-clip.is-selected .editor-trim,
.editor-trim:hover {
    background: transparent;
}

.editor-playhead {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 18;
    width: 2px;
    margin-left: -1px;
    background: rgba(56, 189, 248, 0.96);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.32);
    pointer-events: none;
}

.editor-playhead-handle {
    position: absolute;
    top: 4px;
    left: 50%;
    width: 12px;
    height: 12px;
    padding: 0;
    transform: translateX(-50%);
    border: 2px solid rgba(125, 211, 252, 0.55);
    border-radius: 999px;
    background: #0ea5e9;
    cursor: col-resize;
    pointer-events: auto;
    filter: drop-shadow(0 0 6px rgba(14, 165, 233, 0.45));
}

.editor-playhead-handle:hover {
    border-color: #7dd3fc;
}

.editor-is-moving,
.editor-is-trimming,
body.editor-is-resizing-panels {
    user-select: none;
}

.editor-is-moving * {
    cursor: grabbing !important;
}

.editor-is-trimming * {
    cursor: ew-resize !important;
}

body.editor-is-resizing-panels * {
    cursor: col-resize !important;
}

body[data-theme="light"] .octap-editor-board {
    background: #f8fafc;
}

body[data-theme="light"] .editor-panel,
body[data-theme="light"] .editor-timeline-panel {
    background: #fff;
}

body[data-theme="light"] .editor-ruler-row {
    background: #eef2f7;
}

body[data-theme="light"] .editor-marker-row {
    background: linear-gradient(to bottom, #f6f8fb, #eef2f7);
}

body[data-theme="light"] .editor-track-head {
    background: #f3f6fa;
}

body[data-theme="light"] .editor-track-corner {
    background: #eef2f7;
}

body[data-theme="light"] .editor-marker-corner {
    background: #f6f8fb;
}

body[data-theme="light"] .editor-timeline-bottom-fade {
    background: linear-gradient(to bottom, rgba(248, 250, 252, 0), rgba(248, 250, 252, 0.9));
}

body[data-theme="light"] .editor-track-lane {
    background-image:
        linear-gradient(to right, rgba(15, 23, 42, 0.065) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
}

@media (max-width: 1180px) {
    .editor-main {
        grid-template-columns: minmax(240px, 300px) minmax(360px, 1fr);
        gap: 8px;
    }

    .editor-panel-resizer {
        display: none;
    }

    .editor-inspector-panel {
        grid-column: 1 / -1;
        min-height: 210px;
    }

    .editor-timeline-panel {
        height: 300px;
    }
}

@media (max-width: 720px) {
    .editor-workspace-tabs {
        position: static;
        transform: none;
        order: 1;
        width: 100%;
        gap: 18px;
        overflow-x: auto;
        max-width: 100%;
    }

    .editor-workspace-tab {
        font-size: 13px;
        height: 40px;
    }

    .editor-topbar {
        height: auto;
        min-height: 60px;
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px 12px;
    }

    .editor-top-left,
    .editor-top-right {
        flex: 1 1 100%;
        width: 100%;
    }

    .editor-top-left {
        order: 0;
    }

    .editor-top-right {
        order: 2;
    }

    .editor-main {
        grid-template-columns: 1fr;
        overflow: auto;
    }

    .editor-panel-resizer {
        display: none;
    }

    .editor-media-panel,
    .editor-preview-panel,
    .editor-inspector-panel {
        min-height: 320px;
    }

    .editor-preview-controls {
        grid-template-columns: auto auto 1fr;
    }

    .editor-aspect-badge {
        display: none;
    }

    .editor-timeline-toolbar {
        grid-template-columns: 1fr;
        height: auto;
        gap: 7px;
        padding: 8px;
    }
}
