.flow-studio-field {
    display: grid;
    gap: .35rem;
    margin-block: .8rem;
}

.flow-studio-field .sx-control {
    width: 100%;
}

.flow-studio-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.flow-create-toolbar,
.flow-provider-toolbar {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 14px !important;
    padding: 8px 16px !important;
    background: #09090b !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    min-height: 48px !important;
    box-sizing: border-box !important;
}

.flow-create-toolbar .flow-studio-field,
.flow-provider-toolbar .flow-studio-field {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
}

.flow-create-toolbar .flow-field-label,
.flow-provider-toolbar .flow-field-label,
.flow-create-toolbar .flow-studio-field > span,
.flow-provider-toolbar .flow-studio-field > span {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #a1a1aa !important;
    white-space: nowrap !important;
    letter-spacing: 0.01em !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
}

.flow-create-toolbar select,
.flow-provider-toolbar select,
.flow-create-toolbar .flow-studio-field .sx-control,
.flow-provider-toolbar .flow-studio-field .sx-control {
    width: auto !important;
    min-width: 130px !important;
    max-width: 220px !important;
    height: 32px !important;
    min-height: 32px !important;
    line-height: 32px !important;
    background: #141418 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 6px !important;
    color: #f4f4f5 !important;
    font-size: 12px !important;
    padding: 0 10px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
    transition: all .15s ease !important;
}

.flow-create-toolbar select:hover,
.flow-provider-toolbar select:hover {
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    background: #18181c !important;
}

.flow-settings-panel { max-width: 960px; margin: 0 auto; }
.flow-provider-toolbar .flow-settings-link {
    margin: 0 !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 12px !important;
    background: #141418 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 6px !important;
    color: #d4d4d8 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
    transition: all .15s ease !important;
}

.flow-provider-toolbar .flow-settings-link:hover:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    background: #18181c !important;
}

.flow-workspace .quick-prompt-label { display: grid; gap: .5rem; }
body #root .flow-workspace .quick-compose > header { display: none !important; }
body #root .flow-workspace .quick-compose .quick-reference-head { margin-top: 0 !important; }
.flow-video-queue-link { margin-top: 1rem; }
body #root .flow-workspace .quick-compose > .quick-submit { position: static !important; }
body #root .flow-workspace .quick-options > .flow-studio-field { margin-block: 0; }
body #root .flow-workspace .quick-options { gap: 8px !important; }

@media (max-width: 680px) {
    body #root .quick-studio.quick-video-workspace.flow-workspace {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: max-content 380px max-content !important;
        align-content: start !important;
        overflow-y: auto !important;
    }
    body #root .flow-workspace > .quick-compose { grid-column: 1 !important; grid-row: 1 !important; height: auto !important; min-height: max-content !important; overflow: visible !important; }
    body #root .flow-workspace > .muse-viewer { grid-column: 1 !important; grid-row: 2 !important; }
    body #root .flow-workspace > .muse-video-tools-panel { grid-column: 1 !important; grid-row: 3 !important; height: auto !important; }
}

.flow-video-direction{display:flex;flex-direction:column;gap:14px;margin:18px 0;min-width:0}
.flow-direction-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.flow-preserve-options{display:flex;flex-wrap:wrap;gap:10px;border:1px solid #ffffff20;border-radius:10px;padding:12px;margin:0}
.flow-preserve-options legend{padding:0 5px;color:#c9bed8;font-size:13px}
.flow-preserve-options label{display:flex;align-items:center;gap:7px;font-size:13px}
.flow-preserve-options input{accent-color:#ffffff}
.flow-plan-summary{padding:14px;border:1px solid rgba(255,255,255,0.1);border-radius:10px;background:#141418;line-height:1.6}
.flow-plan-summary strong{font-size:13px;color:#f4f4f5}
.flow-plan-summary p,.flow-plan-summary small{font-size:12px;color:#a1a1aa}
.flow-plan-summary pre{max-height:240px;overflow:auto;white-space:pre-wrap;font:12px/1.7 system-ui;background:#09090b;padding:8px 10px;border-radius:6px;border:1px solid rgba(255,255,255,0.06);color:#d4d4d8}
.flow-preset-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;width:100%;max-width:100%;box-sizing:border-box;margin:0 0 14px;padding:4px;background:#0f0f14;border:1px solid rgba(255,255,255,0.08);border-radius:11px;min-height:60px;height:auto}
.flow-preset-groups button,.flow-preset-groups .flow-tab-btn{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;height:auto!important;min-height:52px!important;padding:8px 6px 9px!important;border-radius:8px!important;border:1px solid transparent!important;background:transparent!important;color:#a1a1aa!important;cursor:pointer!important;transition:all .18s cubic-bezier(0.16,1,0.3,1)!important;overflow:visible!important;text-align:center!important;line-height:normal!important}
.flow-preset-groups button:hover,.flow-preset-groups .flow-tab-btn:hover{background:rgba(255,255,255,0.05)!important;color:#e4e4e7!important}
.flow-preset-groups button[aria-pressed=true],.flow-preset-groups button.is-active,.flow-preset-groups .flow-tab-btn.is-active{border-color:rgba(255,255,255,0.22)!important;background:#202028!important;color:#ffffff!important;font-weight:600!important;box-shadow:0 2px 8px rgba(0,0,0,0.4),inset 0 1px 0 rgba(255,255,255,0.12)!important}
.flow-preset-groups .flow-tab-title{display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;width:100%!important;min-width:0!important;white-space:nowrap!important;overflow:visible!important}
.flow-preset-groups .flow-tab-title strong{font-size:12px!important;font-weight:600!important;color:inherit!important;line-height:1.25!important;white-space:nowrap!important}
.flow-preset-groups .flow-tab-icon{font-size:14px!important;line-height:1!important;flex-shrink:0!important}
.flow-preset-groups .flow-tab-badge{display:block!important;font-size:10.5px!important;color:#8f8f9d!important;line-height:1.3!important;white-space:nowrap!important;overflow:visible!important;margin-top:2px!important}
.flow-preset-groups button[aria-pressed=true] .flow-tab-badge,.flow-preset-groups .flow-tab-btn.is-active .flow-tab-badge{color:#d8b4fe!important;font-weight:500!important}
.flow-reference-role{font:12px system-ui;max-width:100%;background:#141418;color:#f4f4f5;border:1px solid rgba(255,255,255,0.1);border-radius:6px;padding:4px}
@media(max-width:700px){.flow-direction-grid{grid-template-columns:1fr}}

/* Preset guide box & active preset banner (Monochrome Clean) */
.flow-preset-guide {
    margin-top: 14px;
    padding: 12px 13px;
    background: #141418;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.55;
    color: #d4d4d8;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
    word-break: normal;
    overflow-wrap: break-word;
}
.flow-preset-guide-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 8px;
}
.flow-preset-guide-title-wrap {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
}
.flow-preset-guide-title-wrap svg {
    flex-shrink: 0;
    color: #f4f4f5;
}
.flow-preset-guide-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.35;
    letter-spacing: -0.01em;
}
.flow-preset-guide-badge {
    align-self: flex-start;
    font-size: 10.5px;
    font-weight: 500;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    color: #a1a1aa;
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    line-height: 1.4;
}
.flow-preset-guide-summary {
    margin: 0 0 10px 0;
    color: #a1a1aa;
    font-size: 12px;
    line-height: 1.55;
}
.flow-preset-guide-steps {
    margin: 10px 0;
    padding: 10px 11px;
    background: #0d0d10;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.flow-preset-guide-steps-title {
    display: block;
    font-weight: 600;
    color: #f4f4f5;
    margin-bottom: 8px;
    font-size: 11.5px;
    letter-spacing: 0.2px;
}
.flow-preset-step-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.flow-preset-step-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.flow-preset-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    min-width: 17px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 10px;
    font-weight: 600;
    color: #f4f4f5;
    line-height: 1;
    margin-top: 2px;
    flex-shrink: 0;
}
.flow-preset-step-text {
    flex: 1;
    font-size: 11.5px;
    line-height: 1.5;
    color: #d4d4d8;
    word-break: normal;
    overflow-wrap: break-word;
}
.flow-preset-guide-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.flow-preset-tag {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3px 7px;
    border-radius: 4px;
    color: #a1a1aa;
    line-height: 1.3;
    white-space: nowrap;
}
.flow-preset-tag.flow-preset-tag-full {
    width: 100%;
    white-space: normal;
    box-sizing: border-box;
    line-height: 1.45;
}
.flow-active-preset-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    margin: 0 0 14px 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    font-size: 12px;
    color: #f4f4f5;
    line-height: 1.5;
}
.flow-active-preset-banner-info {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex: 1;
}
.flow-active-preset-banner-info strong {
    color: #ffffff;
    font-size: 12.5px;
}
.flow-active-preset-banner-info p {
    margin: 2px 0 0 0;
    color: #a1a1aa;
    font-size: 11.5px;
}
.flow-active-preset-banner button {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #d4d4d8;
    font-size: 11.5px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    transition: all 0.15s;
}
.flow-active-preset-banner button:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

.flow-task-issue{padding:12px 0;line-height:1.6}.flow-task-issue header{display:flex;align-items:center;justify-content:space-between;gap:12px}.flow-task-issue header strong{font-size:14px;color:#f4f4f5}.flow-task-issue small{display:block;color:#a1a1aa}.flow-task-issue p{margin:8px 0}.flow-task-issue+.flow-task-issue{border-top:1px solid rgba(255,255,255,0.08)}.muse-viewer-issues>details{margin-top:12px;border-top:1px solid rgba(255,255,255,0.08);padding-top:12px}.muse-viewer-issues>details>summary{cursor:pointer;color:#a1a1aa}

/* ========================================================
   Google Flow Settings Overhaul (Clean Monochrome Studio)
   ======================================================== */
.flow-settings-container {
    max-width: 960px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    padding-bottom: 32px !important;
    box-sizing: border-box !important;
}

/* Header */
.flow-settings-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    padding: 16px 20px !important;
    background: #18181b !important;
    border: 1px solid #27272a !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
}
.flow-settings-title-group {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
}
.flow-settings-icon-box {
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
    background: #27272a !important;
    border: 1px solid #3f3f46 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #f4f4f5 !important;
    flex-shrink: 0 !important;
}
.flow-settings-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #f4f4f5 !important;
    margin: 0 0 2px !important;
    letter-spacing: -0.01em !important;
}
.flow-settings-subtitle {
    font-size: 12px !important;
    color: #a1a1aa !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}
.flow-settings-status-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 5px 12px !important;
    border-radius: 9999px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}
.flow-settings-status-badge.online {
    background: rgba(16, 185, 129, 0.1) !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
    color: #86efac !important;
}
.flow-settings-status-badge.offline {
    background: #27272a !important;
    border: 1px solid #3f3f46 !important;
    color: #a1a1aa !important;
}
.flow-status-dot {
    width: 7px !important;
    height: 7px !important;
    border-radius: 50% !important;
    background: currentColor !important;
}

/* Card */
.flow-card {
    background: #18181b !important;
    border: 1px solid #27272a !important;
    border-radius: 12px !important;
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    box-sizing: border-box !important;
}
.flow-card-head {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}
.flow-card-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #f4f4f5 !important;
    margin: 0 !important;
}
.flow-card-hint {
    font-size: 12px !important;
    color: #71717a !important;
}

/* Feature Card (Watermark switch) */
.flow-feature-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    padding: 16px 20px !important;
}
.flow-feature-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    flex: 1 !important;
}
.flow-feature-title-row {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}
.flow-feature-name {
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #f4f4f5 !important;
}
.flow-badge-ai {
    font-size: 10px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 1px 6px !important;
    border-radius: 4px !important;
    background: #27272a !important;
    color: #a1a1aa !important;
    border: 1px solid #3f3f46 !important;
}
.flow-feature-desc {
    font-size: 12px !important;
    color: #a1a1aa !important;
    margin: 0 !important;
    line-height: 1.45 !important;
}

/* Modern Monochrome Switch */
.flow-switch-label {
    position: relative !important;
    display: inline-block !important;
    width: 44px !important;
    height: 24px !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
}
.flow-switch-label input {
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}
.flow-switch-slider {
    position: absolute !important;
    cursor: pointer !important;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #27272a !important;
    border: 1px solid #3f3f46 !important;
    border-radius: 24px !important;
    transition: all .2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.flow-switch-slider:before {
    position: absolute !important;
    content: "" !important;
    height: 16px !important;
    width: 16px !important;
    left: 3px !important;
    bottom: 3px !important;
    background-color: #a1a1aa !important;
    border-radius: 50% !important;
    transition: all .2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.flow-switch-label input:checked + .flow-switch-slider {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
}
.flow-switch-label input:checked + .flow-switch-slider:before {
    transform: translateX(20px) !important;
    background-color: #09090b !important;
}
.flow-switch-label input:disabled + .flow-switch-slider {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* Form Grid & Elements */
.flow-form-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
}
.flow-form-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}
.flow-label {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #d4d4d8 !important;
}
.flow-count-tag, .flow-label-badge {
    font-size: 11px !important;
    font-weight: 400 !important;
    color: #71717a !important;
}
.flow-label-badge {
    color: #a1a1aa !important;
    background: #27272a !important;
    padding: 1px 6px !important;
    border-radius: 4px !important;
    border: 1px solid #3f3f46 !important;
}
.flow-select, .flow-input, .flow-textarea {
    width: 100% !important;
    box-sizing: border-box !important;
    background: #141416 !important;
    border: 1px solid #27272a !important;
    border-radius: 8px !important;
    padding: 9px 12px !important;
    color: #f4f4f5 !important;
    font-size: 13px !important;
    font-family: inherit !important;
    outline: none !important;
    transition: border-color .15s ease, box-shadow .15s ease !important;
}
.flow-select:focus, .flow-input:focus, .flow-textarea:focus {
    border-color: #52525b !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05) !important;
}
.flow-input-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
    font-size: 12px !important;
}
.flow-field-help {
    font-size: 11.5px !important;
    color: #71717a !important;
    margin: 2px 0 0 !important;
    line-height: 1.45 !important;
}

/* Mode Switcher Segmented Pills */
.flow-mode-switcher {
    display: inline-flex !important;
    align-items: center !important;
    background: #141416 !important;
    border: 1px solid #27272a !important;
    border-radius: 8px !important;
    padding: 3px !important;
    gap: 3px !important;
    align-self: flex-start !important;
}
.flow-mode-tab {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 14px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    border: 0 !important;
    background: transparent !important;
    color: #a1a1aa !important;
    cursor: pointer !important;
    transition: all .15s ease !important;
}
.flow-mode-tab:hover:not(.active) {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.04) !important;
}
.flow-mode-tab.active {
    background: #ffffff !important;
    color: #09090b !important;
    font-weight: 600 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

/* Guide box inside mode */
.flow-guide-box {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 12px 14px !important;
    background: #141416 !important;
    border: 1px solid #27272a !important;
    border-radius: 8px !important;
}
.flow-guide-icon {
    font-size: 16px !important;
    line-height: 1 !important;
    margin-top: 2px !important;
}
.flow-guide-text strong {
    display: block !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #f4f4f5 !important;
    margin-bottom: 2px !important;
}
.flow-guide-text p {
    font-size: 11.5px !important;
    color: #a1a1aa !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}
.flow-guide-text code {
    background: #27272a !important;
    padding: 1px 5px !important;
    border-radius: 4px !important;
    color: #e4e4e7 !important;
    font-family: ui-monospace, monospace !important;
    font-size: 11px !important;
}

/* Actions Row */
.flow-actions-row {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    padding-top: 4px !important;
}
.flow-btn-primary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 8px 18px !important;
    background: #ffffff !important;
    color: #09090b !important;
    border: 1px solid #ffffff !important;
    border-radius: 8px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all .15s ease !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
}
.flow-btn-primary:hover:not(:disabled) {
    background: #f4f4f5 !important;
}
.flow-btn-primary:disabled {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    background: #27272a !important;
    color: #71717a !important;
    border-color: #3f3f46 !important;
}
.flow-btn-primary:disabled * {
    color: #71717a !important;
}
.flow-btn-secondary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 8px 14px !important;
    background: #27272a !important;
    color: #f4f4f5 !important;
    border: 1px solid #3f3f46 !important;
    border-radius: 8px !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all .15s ease !important;
}
.flow-btn-secondary:hover:not(:disabled) {
    background: #323238 !important;
    border-color: #52525b !important;
}
.flow-btn-secondary:disabled {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
}
.flow-session-status-inline {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 12px !important;
    color: #86efac !important;
    background: rgba(16, 185, 129, 0.08) !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
}
.flow-status-dot-sm {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: #86efac !important;
}

/* Session metadata grid */
.flow-card-subtle {
    background: #141416 !important;
    border-color: #27272a !important;
}
.flow-meta-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 12px !important;
}
.flow-meta-item {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    padding: 10px 12px !important;
    background: #18181b !important;
    border: 1px solid #27272a !important;
    border-radius: 8px !important;
}
.flow-meta-label {
    font-size: 11px !important;
    color: #71717a !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
}
.flow-meta-value {
    font-size: 12.5px !important;
    font-weight: 500 !important;
    color: #f4f4f5 !important;
}
.flow-meta-notice {
    font-size: 11px !important;
    color: #71717a !important;
    margin: 0 !important;
    line-height: 1.45 !important;
}

/* Alerts */
.flow-alert {
    padding: 10px 14px !important;
    border-radius: 8px !important;
    font-size: 12.5px !important;
    line-height: 1.45 !important;
}
.flow-alert-error {
    background: #271417 !important;
    border: 1px solid #4d2328 !important;
    color: #fca5a5 !important;
}
.flow-alert-success {
    background: #16241b !important;
    border: 1px solid #27402f !important;
    color: #86efac !important;
}

/* =========================================================
   STUDIO PRO WORKFLOWS: CAMERA ANGLES, MULTI-SHOT & CONTACT SHEET
   ========================================================= */

/* Studio Preset Card List in Right Sidebar */
.studio-preset-cards-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
    margin-bottom: 12px !important;
}

.studio-preset-card-btn {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    text-align: left !important;
    padding: 9px 12px !important;
    border-radius: 12px !important;
    background: #0d0d12 !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    color: #e4e4e7 !important;
    cursor: pointer !important;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
    margin-bottom: 7px !important;
    position: relative !important;
    overflow: hidden !important;
}

.studio-preset-card-btn:hover:not(:disabled) {
    background: #13131a !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
}

.studio-preset-card-btn.active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.studio-preset-card-btn.active::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 20% !important;
    bottom: 20% !important;
    width: 3px !important;
    border-radius: 0 3px 3px 0 !important;
    background: #ffffff !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.85) !important;
}

.studio-preset-card-top {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
}

.studio-preset-card-icon {
    width: 28px !important;
    height: 28px !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #d4d4d8 !important;
    flex-shrink: 0 !important;
    transition: all 0.18s ease !important;
}

.studio-preset-card-btn.active .studio-preset-card-icon {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: #08080b !important;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.4) !important;
}

.studio-preset-card-titles {
    display: flex !important;
    flex-direction: column !important;
    gap: 1px !important;
    min-width: 0 !important;
    flex: 1 !important;
}

.studio-preset-card-titles strong {
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: #f4f4f5 !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    word-break: break-word !important;
}

.studio-preset-card-titles small {
    font-size: 10px !important;
    color: #a1a1aa !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    word-break: break-word !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.studio-preset-card-badge {
    font-family: ui-monospace, monospace !important;
    font-size: 9px !important;
    font-weight: 600 !important;
    color: #a1a1aa !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 2px 6px !important;
    border-radius: 9999px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    letter-spacing: 0.02em !important;
}

.studio-preset-card-btn.active .studio-preset-card-badge {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
}

/* Visual Artwork inside Active Studio Preset Guide */
.studio-visual-artwork {
    width: 100% !important;
    border-radius: 10px !important;
    background: linear-gradient(180deg, #18181c 0%, #101013 100%) !important;
    border: 1px solid #27272a !important;
    padding: 8px !important;
    margin-bottom: 10px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.studio-visual-artwork.is-angles {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 5px !important;
}

.studio-visual-cell {
    background: #141417 !important;
    border: 1px solid #27272a !important;
    border-radius: 6px !important;
    padding: 6px 3px 5px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 2px !important;
    text-align: center !important;
}

.studio-visual-cell.is-source {
    border-color: #52525b !important;
    background: #1c1c21 !important;
}

.studio-visual-silhouette {
    width: 22px !important;
    height: 26px !important;
    border-radius: 50% 50% 38% 38% !important;
    background: linear-gradient(145deg, #d4d4d8 0%, #52525b 100%) !important;
    margin-bottom: 2px !important;
    position: relative !important;
}

.studio-visual-silhouette.angle-2 { transform: perspective(60px) rotateY(-28deg) !important; }
.studio-visual-silhouette.angle-3 { transform: scaleX(0.68) !important; }
.studio-visual-silhouette.angle-4 { border-radius: 50% !important; height: 22px !important; margin-top: 2px !important; }

.studio-visual-cell span {
    font-size: 9.5px !important;
    font-weight: 600 !important;
    color: #e4e4e7 !important;
    line-height: 1.1 !important;
}

.studio-visual-cell small {
    font-size: 8.5px !important;
    color: #71717a !important;
    line-height: 1.1 !important;
}

/* Character Sheet Split Preview */
.studio-visual-artwork.is-char-sheet {
    display: grid !important;
    grid-template-columns: 1.05fr 1.25fr !important;
    gap: 6px !important;
    min-height: 82px !important;
}

.studio-char-left {
    background: #1f1f24 !important;
    border: 1px solid #2e2e36 !important;
    border-radius: 7px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-end !important;
    padding: 8px 6px 6px !important;
    position: relative !important;
}

.studio-char-head {
    width: 24px !important;
    height: 28px !important;
    border-radius: 50% !important;
    background: linear-gradient(180deg, #e4e4e7 0%, #71717a 100%) !important;
}

.studio-char-shoulders {
    width: 48px !important;
    height: 16px !important;
    border-radius: 12px 12px 4px 4px !important;
    background: #3f3f46 !important;
    margin-top: 2px !important;
}

.studio-visual-tag {
    font-size: 9px !important;
    color: #a1a1aa !important;
    margin-top: 4px !important;
}

.studio-char-right {
    background: #141418 !important;
    border: 1px solid #27272a !important;
    border-radius: 7px !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: space-around !important;
    padding: 8px 6px 6px !important;
}

.studio-char-figure {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 2px !important;
}

.studio-char-figure i {
    width: 11px !important;
    height: 11px !important;
    border-radius: 50% !important;
    background: #d4d4d8 !important;
    display: block !important;
}

.studio-char-figure b {
    width: 20px !important;
    height: 22px !important;
    border-radius: 5px 5px 2px 2px !important;
    background: linear-gradient(180deg, #71717a 0%, #3f3f46 100%) !important;
    display: block !important;
}

.studio-char-figure.is-back b {
    background: linear-gradient(180deg, #52525b 0%, #27272a 100%) !important;
}

.studio-char-figure em {
    width: 14px !important;
    height: 14px !important;
    border-left: 4px solid #71717a !important;
    border-right: 4px solid #71717a !important;
    display: block !important;
}

.studio-char-figure small {
    font-size: 8.5px !important;
    color: #a1a1aa !important;
}

/* Multi-Angle Shot Coverage Preview */
.studio-visual-artwork.is-coverage {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
}

.studio-coverage-pane {
    background: #151519 !important;
    border: 1px solid #27272a !important;
    border-radius: 7px !important;
    padding: 7px 5px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 2px !important;
}

.studio-coverage-frame {
    width: 100% !important;
    height: 34px !important;
    border-radius: 4px !important;
    background: radial-gradient(circle at 50% 35%, #52525b 0%, #18181b 75%) !important;
    border: 1px solid #2e2e36 !important;
    margin-bottom: 3px !important;
}

.studio-coverage-pane strong {
    font-size: 9.5px !important;
    color: #f4f4f5 !important;
    line-height: 1.15 !important;
}

.studio-coverage-pane small {
    font-size: 8.5px !important;
    color: #71717a !important;
}

/* Product Shots Pedestal Preview */
.studio-visual-artwork.is-product-shots {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 10px 12px !important;
}

.studio-pedestal-scene {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: 68px !important;
    height: 56px !important;
    background: radial-gradient(circle at 50% 30%, #2e2e36 0%, #141417 80%) !important;
    border: 1px solid #2e2e36 !important;
    border-radius: 7px !important;
    padding-bottom: 6px !important;
    flex-shrink: 0 !important;
}

.studio-pedestal-product {
    width: 18px !important;
    height: 22px !important;
    border-radius: 4px 4px 2px 2px !important;
    background: linear-gradient(135deg, #f4f4f5 0%, #71717a 100%) !important;
    margin-bottom: 2px !important;
}

.studio-pedestal-block {
    width: 40px !important;
    height: 10px !important;
    border-radius: 2px !important;
    background: #3f3f46 !important;
}

.studio-product-shot-badges {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    flex: 1 !important;
}

.studio-product-shot-badges span {
    font-size: 10px !important;
    color: #d4d4d8 !important;
    background: #16161a !important;
    border: 1px solid #27272a !important;
    border-radius: 5px !important;
    padding: 3px 8px !important;
}

/* Photo Reframe Expansion Preview */
.studio-visual-artwork.is-reframe {
    padding: 8px !important;
}

.studio-reframe-outer {
    position: relative !important;
    height: 68px !important;
    border: 1px dashed #52525b !important;
    border-radius: 7px !important;
    background: linear-gradient(90deg, #121215 0%, #1c1c22 50%, #121215 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.studio-reframe-inner {
    width: 54px !important;
    height: 48px !important;
    border: 1.5px solid #f4f4f5 !important;
    border-radius: 5px !important;
    background: #27272a !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
}

.studio-reframe-subject {
    width: 14px !important;
    height: 18px !important;
    border-radius: 50% 50% 35% 35% !important;
    background: #f4f4f5 !important;
}

.studio-reframe-inner small {
    font-size: 8px !important;
    color: #d4d4d8 !important;
}

.studio-reframe-corner {
    position: absolute !important;
    font-size: 10px !important;
    color: #a1a1aa !important;
}
.studio-reframe-corner.tl { top: 4px; left: 8px; }
.studio-reframe-corner.tr { top: 4px; right: 8px; }
.studio-reframe-corner.bl { bottom: 4px; left: 8px; }
.studio-reframe-corner.br { bottom: 4px; right: 8px; }

.studio-reframe-caption {
    position: absolute !important;
    bottom: 4px !important;
    right: 24px !important;
    font-style: normal !important;
    font-size: 9px !important;
    color: #a1a1aa !important;
}

/* Runway-style Multi-Select Pill Chips Builder */
.studio-angle-builder {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: 11px 12px !important;
    background: #0c0c0e !important;
    border: 1px solid #232329 !important;
    border-radius: 10px !important;
}

.studio-angle-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.studio-angle-title-row {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.studio-angle-header strong {
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: #e4e4e7 !important;
}

.studio-angle-counter {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #a1a1aa !important;
    background: #18181b !important;
    border: 1px solid #27272a !important;
    border-radius: 999px !important;
    padding: 1px 7px !important;
}

.studio-angle-quick-actions {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.studio-mini-link {
    background: #18181b !important;
    border: 1px solid #27272a !important;
    color: #a1a1aa !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    padding: 2px 7px !important;
    border-radius: 999px !important;
    cursor: pointer !important;
    transition: all 0.14s ease !important;
}

.studio-mini-link:hover:not(:disabled) {
    color: #f4f4f5 !important;
    border-color: #3f3f46 !important;
    background: #222227 !important;
}

.studio-angle-pills {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}

.studio-angle-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 5px 11px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    background: #18181b !important;
    border: 1px solid #27272a !important;
    color: #a1a1aa !important;
    cursor: pointer !important;
    transition: all 0.14s ease !important;
    user-select: none !important;
}

.studio-angle-pill:hover:not(:disabled):not(.is-selected) {
    background: #222227 !important;
    border-color: #3f3f46 !important;
    color: #f4f4f5 !important;
}

.studio-angle-pill.is-selected {
    background: #f4f4f5 !important;
    border-color: #ffffff !important;
    color: #09090b !important;
    font-weight: 600 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28) !important;
}

.studio-angle-pill:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
}

.studio-custom-angle-field {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    margin-top: 4px !important;
    padding-top: 8px !important;
    border-top: 1px solid #1e1e24 !important;
}

.studio-custom-angle-field span {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #a1a1aa !important;
}

.studio-custom-angle-field input.sx-control {
    font-size: 11.5px !important;
    padding: 7px 10px !important;
    background: #141417 !important;
    border: 1px solid #27272a !important;
    border-radius: 8px !important;
    color: #f4f4f5 !important;
}

/* New Character Preset Styling */
.studio-visual-artwork.is-new-char {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    padding: 12px 14px !important;
    background: linear-gradient(135deg, #141418 0%, #1c1c22 100%) !important;
    border-radius: 10px !important;
}

.studio-char-trans-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 8px 10px !important;
    border-radius: 8px !important;
    background: #18181c !important;
    border: 1px solid #27272a !important;
    min-width: 82px !important;
    text-align: center !important;
}

.studio-char-trans-card.is-target-face {
    background: #202026 !important;
    border-color: #3f3f46 !important;
}

.studio-char-avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    position: relative !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.studio-char-avatar.is-orig {
    background: linear-gradient(135deg, #3f3f46, #27272a) !important;
    border: 2px solid #52525b !important;
}

.studio-char-avatar.is-new {
    background: linear-gradient(135deg, #71717a, #3f3f46) !important;
    border: 2px solid #e4e4e7 !important;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.15) !important;
}

.studio-char-trans-card span {
    font-size: 10.5px !important;
    font-weight: 600 !important;
    color: #f4f4f5 !important;
}

.studio-char-trans-card small {
    font-size: 9px !important;
    color: #a1a1aa !important;
}

.studio-char-trans-arrow {
    font-size: 14px !important;
    color: #a1a1aa !important;
    font-weight: 700 !important;
}

.studio-char-scope-caption {
    font-size: 11px !important;
    color: #a1a1aa !important;
    line-height: 1.45 !important;
    margin: 4px 0 6px !important;
    padding: 6px 10px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border-radius: 6px !important;
    border-left: 2px solid #71717a !important;
}

.studio-char-sublabel {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #a1a1aa !important;
    margin: 7px 0 3px !important;
}

.studio-char-builder {
    gap: 9px !important;
}

/* Outfit Swap Preset Styling */
.studio-visual-artwork.is-outfit-swap {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 10px 8px !important;
    background: linear-gradient(135deg, #141418 0%, #1c1c22 100%) !important;
    border-radius: 10px !important;
}

.studio-outfit-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 3px !important;
    padding: 6px 8px !important;
    border-radius: 8px !important;
    background: #18181c !important;
    border: 1px solid #27272a !important;
    min-width: 76px !important;
    text-align: center !important;
    flex: 1 !important;
}

.studio-outfit-card.is-clothing {
    background: #1c1a24 !important;
    border-color: #3f364e !important;
}

.studio-outfit-card.is-result {
    background: #1f221e !important;
    border-color: #2e4432 !important;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.08) !important;
}

.studio-outfit-avatar {
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #52525b, #27272a) !important;
    border: 2px solid #71717a !important;
    box-sizing: border-box !important;
}

.studio-outfit-hanger {
    width: 26px !important;
    height: 26px !important;
    border-radius: 6px !important;
    background: linear-gradient(135deg, #818cf8, #4f46e5) !important;
    border: 1px solid #a5b4fc !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

.studio-outfit-hanger::after {
    content: '👔';
    font-size: 13px !important;
}

.studio-outfit-result-badge {
    padding: 3px 6px !important;
    border-radius: 12px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    background: rgba(34, 197, 94, 0.2) !important;
    color: #4ade80 !important;
    border: 1px solid rgba(34, 197, 94, 0.35) !important;
}

.studio-outfit-card span {
    font-size: 10px !important;
    font-weight: 600 !important;
    color: #f4f4f5 !important;
    white-space: nowrap !important;
}

.studio-outfit-card small {
    font-size: 8.5px !important;
    color: #a1a1aa !important;
    white-space: nowrap !important;
}

.studio-outfit-op {
    font-size: 13px !important;
    color: #71717a !important;
    font-weight: 700 !important;
    user-select: none !important;
}

.studio-outfit-op.is-arrow {
    color: #4ade80 !important;
}

.studio-outfit-lock-banner {
    background: rgba(34, 197, 94, 0.08) !important;
    border: 1px solid rgba(34, 197, 94, 0.25) !important;
    border-radius: 8px !important;
    padding: 8px 10px !important;
    margin-bottom: 8px !important;
}

.studio-outfit-lock-badge {
    display: inline-block !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #4ade80 !important;
    letter-spacing: 0.03em !important;
    margin-bottom: 3px !important;
}

.studio-outfit-lock-banner p {
    margin: 0 !important;
    font-size: 11px !important;
    color: #cbd5e1 !important;
    line-height: 1.4 !important;
}

.studio-pill-desc {
    font-size: 10.5px !important;
    color: #a1a1aa !important;
    margin: 4px 0 6px 2px !important;
    font-style: italic !important;
}

/* Center Stage Contact Sheet & Examples Showcase */
.muse-viewer-video-bridge-btn {
    background: #f4f4f5 !important;
    color: #09090b !important;
    border-color: #ffffff !important;
    font-weight: 600 !important;
}

.muse-viewer-video-bridge-btn:hover:not(:disabled) {
    background: #ffffff !important;
}

.muse-viewer-meta-actions {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.muse-contact-sheet-stage {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    padding: 14px !important;
    overflow-y: auto !important;
    max-height: 72vh !important;
}

.muse-contact-sheet-block {
    background: #121215 !important;
    border: 1px solid #242429 !important;
    border-radius: 12px !important;
    padding: 14px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.muse-contact-sheet-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

.muse-contact-sheet-head strong {
    display: block !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #f4f4f5 !important;
}

.muse-contact-sheet-head small {
    display: block !important;
    font-size: 11.5px !important;
    color: #a1a1aa !important;
    margin-top: 2px !important;
}

.muse-contact-sheet-actions {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.muse-contact-sheet-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)) !important;
    gap: 10px !important;
}

.muse-contact-sheet-grid.is-five-cols {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

@media (max-width: 1100px) {
    .muse-contact-sheet-grid.is-five-cols {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
    }
}

.muse-contact-card {
    background: #18181c !important;
    border: 1px solid #27272a !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.muse-contact-card:hover {
    border-color: #52525b !important;
    transform: translateY(-1px) !important;
}

.muse-contact-card.is-current {
    border-color: #f4f4f5 !important;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) !important;
}

.muse-contact-card.is-video-picked {
    border-color: #ffffff !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35) !important;
}

.muse-contact-card.is-source-card {
    background: #141417 !important;
    border-style: dashed !important;
    border-color: #52525b !important;
}

.muse-contact-thumb {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 4 / 5 !important;
    background: #09090b !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.muse-contact-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.muse-contact-badge {
    position: absolute !important;
    top: 7px !important;
    left: 7px !important;
    font-size: 9.5px !important;
    font-weight: 600 !important;
    padding: 2px 7px !important;
    border-radius: 999px !important;
    background: rgba(9, 9, 11, 0.78) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    color: #e4e4e7 !important;
    backdrop-filter: blur(4px) !important;
}

.muse-contact-badge.is-source {
    background: #f4f4f5 !important;
    color: #09090b !important;
}

.muse-contact-pick-btn {
    position: absolute !important;
    bottom: 7px !important;
    right: 7px !important;
    left: 7px !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    background: rgba(15, 15, 18, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #e4e4e7 !important;
    cursor: pointer !important;
    transition: all 0.14s ease !important;
}

.muse-contact-pick-btn:hover {
    background: #27272a !important;
    border-color: #ffffff !important;
}

.muse-contact-pick-btn.active {
    background: #ffffff !important;
    color: #09090b !important;
    border-color: #ffffff !important;
}

.muse-contact-card footer {
    padding: 8px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    background: #141417 !important;
    border-top: 1px solid #222227 !important;
}

.muse-contact-card footer strong {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #e4e4e7 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.muse-contact-card footer small {
    font-size: 10px !important;
    color: #71717a !important;
}

/* Example Row Cards inside Contact Sheet */
.muse-example-row-card {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: 12px !important;
    border-radius: 10px !important;
    background: #16161a !important;
    border: 1px solid #25252b !important;
}

.muse-example-row-title {
    display: flex !important;
    align-items: baseline !important;
    justify-content: space-between !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.muse-example-row-title strong {
    font-size: 12px !important;
    color: #f4f4f5 !important;
}

.muse-example-row-title span {
    font-size: 11px !important;
    color: #71717a !important;
}

.muse-example-art {
    aspect-ratio: 4 / 4.4 !important;
    background: radial-gradient(circle at 50% 35%, #2e2e36 0%, #121216 80%) !important;
}

.muse-example-silhouette {
    width: 44px !important;
    height: 54px !important;
    border-radius: 50% 50% 36% 36% !important;
    background: linear-gradient(145deg, #e4e4e7 0%, #52525b 100%) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45) !important;
    transition: transform 0.2s ease !important;
}

.ex-portrait-source .muse-example-silhouette { transform: rotate(-8deg); }
.ex-portrait-front .muse-example-silhouette { transform: scale(1.04); }
.ex-portrait-profile .muse-example-silhouette { transform: scaleX(0.65); }
.ex-portrait-rear .muse-example-silhouette { background: linear-gradient(145deg, #71717a 0%, #27272a 100%); }
.ex-portrait-top .muse-example-silhouette { width: 46px !important; height: 46px !important; border-radius: 50% !important; }

.ex-chair-source .muse-example-silhouette,
.ex-chair-left .muse-example-silhouette,
.ex-chair-rear .muse-example-silhouette,
.ex-chair-high .muse-example-silhouette,
.ex-chair-low .muse-example-silhouette {
    width: 50px !important;
    height: 40px !important;
    border-radius: 8px !important;
    border: 2px solid #a1a1aa !important;
}
.ex-chair-left .muse-example-silhouette { transform: perspective(80px) rotateY(-35deg); }
.ex-chair-rear .muse-example-silhouette { background: #3f3f46 !important; }
.ex-chair-high .muse-example-silhouette { transform: perspective(80px) rotateX(28deg); }
.ex-chair-low .muse-example-silhouette { transform: perspective(80px) rotateX(-22deg) scale(1.06); }

.flow-locked-badge {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 8px 12px !important;
    margin: 8px 0 !important;
    background: rgba(99, 102, 241, 0.12) !important;
    border: 1px solid rgba(129, 140, 248, 0.35) !important;
    border-radius: 8px !important;
    color: #e0e7ff !important;
}
.flow-locked-badge .flow-locked-icon {
    font-size: 16px !important;
    flex-shrink: 0 !important;
}
.flow-locked-badge .flow-locked-text {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}
.flow-locked-badge strong {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #a5b4fc !important;
}
.flow-locked-badge small {
    font-size: 11px !important;
    color: #c7d2fe !important;
    opacity: 0.85 !important;
}

/* ========================================================
   September Studio - Upgraded Template Hub & Home Page (Magnific AI Obsidian Standard)
   ======================================================== */
.muse-home-hub {
    max-width: 1360px !important;
    margin: 0 auto !important;
    padding: 24px 28px 60px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
}

/* Hero Header */
.muse-home-hero {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    background: radial-gradient(ellipse 90% 70% at 50% -20%, rgba(147, 51, 234, 0.14), rgba(59, 130, 246, 0.05) 50%, transparent 80%), #0d0d12 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px !important;
    padding: 32px 36px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    position: relative !important;
    overflow: hidden !important;
}

.muse-home-hero::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 10% !important;
    right: 10% !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent) !important;
}

.muse-home-eyebrow {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.18em !important;
    color: #d4d4d8 !important;
    text-transform: uppercase !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    padding: 5px 14px !important;
    border-radius: 9999px !important;
    align-self: flex-start !important;
    margin-bottom: 2px !important;
}

.muse-home-hero h1 {
    font-size: clamp(26px, 3.2vw, 38px) !important;
    font-weight: 700 !important;
    letter-spacing: -0.03em !important;
    background: linear-gradient(135deg, #ffffff 0%, #f4f4f5 45%, #a1a1aa 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    margin: 4px 0 6px !important;
    line-height: 1.2 !important;
}

.muse-home-hero p {
    font-size: 13.5px !important;
    color: #a1a1aa !important;
    max-width: 720px !important;
    line-height: 1.65 !important;
    margin: 0 !important;
}

/* Quick Action Strip (4 main cards) */
.muse-home-quick-strip {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

.muse-home-quick-btn {
    display: flex !important;
    align-items: center !important;
    gap: 13px !important;
    padding: 15px 16px !important;
    background: rgba(18, 18, 24, 0.7) !important;
    backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 16px !important;
    color: #ffffff !important;
    cursor: pointer !important;
    text-align: left !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.muse-home-quick-btn:hover {
    background: rgba(26, 26, 36, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.04) !important;
}

.muse-home-quick-icon {
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #f4f4f5 !important;
}

.muse-home-quick-btn.is-video .muse-home-quick-icon {
    background: rgba(168, 85, 247, 0.14) !important;
    border-color: rgba(168, 85, 247, 0.3) !important;
    color: #c084fc !important;
}

.muse-home-quick-btn.is-image .muse-home-quick-icon {
    background: rgba(59, 130, 246, 0.14) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
    color: #60a5fa !important;
}

.muse-home-quick-btn.is-edit .muse-home-quick-icon {
    background: rgba(234, 179, 8, 0.14) !important;
    border-color: rgba(234, 179, 8, 0.3) !important;
    color: #facc15 !important;
}

.muse-home-quick-btn.is-refs .muse-home-quick-icon {
    background: rgba(16, 185, 129, 0.14) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    color: #34d399 !important;
}

.muse-home-quick-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    min-width: 0 !important;
    flex: 1 !important;
}

.muse-home-quick-info strong {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.muse-home-quick-info small {
    font-size: 11px !important;
    color: #a1a1aa !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Filter Bar & Search - Magnific Floating Glass Capsules */
.muse-home-filter-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    flex-wrap: wrap !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin: 6px 0 16px 0 !important;
}

.muse-home-filter-tabs {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-wrap: wrap !important;
    padding: 5px !important;
    background: rgba(14, 14, 18, 0.78) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 9999px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

.muse-home-filter-tab {
    padding: 7px 16px !important;
    border-radius: 9999px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    color: #a1a1aa !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.muse-home-filter-tab:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
}

.muse-home-filter-tab.is-active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08)) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

.muse-home-search-wrap {
    display: flex !important;
    align-items: center !important;
    min-width: 260px !important;
    max-width: 320px !important;
    position: relative !important;
    background: rgba(14, 14, 18, 0.78) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 9999px !important;
    padding: 3px 5px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.muse-home-search-wrap:focus-within {
    border-color: rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6), 0 0 16px rgba(255, 255, 255, 0.08) !important;
}

.muse-home-search-input {
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    border-radius: 9999px !important;
    padding: 6px 14px 6px 32px !important;
    font-size: 12px !important;
    color: #f4f4f5 !important;
    outline: none !important;
}

.muse-home-search-icon {
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 12px !important;
    color: #71717a !important;
    pointer-events: none !important;
}

/* Template Cards Grid (Magnific AI Visual-First Gallery Cards) */
.muse-home-templates-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
}

.muse-home-template-card {
    background: #0d0d12 !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 18px !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    gap: 0 !important;
    text-align: left !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative !important;
    box-sizing: border-box !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
    overflow: hidden !important;
}

.muse-home-template-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
    z-index: 3 !important;
}

.muse-home-template-card:hover {
    background: #111117 !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.75), 0 0 24px rgba(255, 255, 255, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

/* Cover Artwork Wrap */
.muse-tpl-cover-wrap {
    position: relative !important;
    width: 100% !important;
    height: 185px !important;
    overflow: hidden !important;
    background: #141419 !important;
}

.muse-tpl-cover-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease !important;
    filter: brightness(0.92) contrast(1.05) !important;
}

.muse-home-template-card:hover .muse-tpl-cover-img {
    transform: scale(1.06) !important;
    filter: brightness(1.02) contrast(1.08) !important;
}

.muse-tpl-cover-overlay {
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(180deg, rgba(8, 8, 11, 0.35) 0%, rgba(8, 8, 11, 0) 35%, rgba(13, 13, 18, 0.95) 100%) !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

.muse-tpl-cover-header {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    right: 12px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    z-index: 2 !important;
    pointer-events: none !important;
}

.muse-tpl-cover-icon {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 4px 10px !important;
    border-radius: 9999px !important;
    background: rgba(10, 10, 14, 0.72) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

.muse-tpl-cover-icon.is-video {
    border-color: rgba(168, 85, 247, 0.35) !important;
    color: #e9d5ff !important;
}

.muse-tpl-cover-icon.is-image {
    border-color: rgba(59, 130, 246, 0.35) !important;
    color: #bfdbfe !important;
}

.muse-tpl-cover-icon.is-edit {
    border-color: rgba(234, 179, 8, 0.35) !important;
    color: #fef08a !important;
}

.muse-tpl-cover-icon-label {
    font-size: 10px !important;
    letter-spacing: 0.02em !important;
}

.muse-tpl-cover-badges {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.muse-tpl-cover-badges .muse-tpl-badge-hl {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #09090b !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 3px 9px !important;
    border-radius: 9999px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
}

.muse-tpl-cover-badges .muse-tpl-badge-cat {
    background: rgba(10, 10, 14, 0.65) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #e4e4e7 !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    padding: 3px 9px !important;
    border-radius: 9999px !important;
}

/* Fallback Top Row (if no cover) */
.muse-tpl-card-top {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 18px 18px 0 18px !important;
}

.muse-tpl-icon-box {
    width: 38px !important;
    height: 38px !important;
    border-radius: 11px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.muse-tpl-icon-box.is-video {
    background: rgba(168, 85, 247, 0.14) !important;
    border: 1px solid rgba(168, 85, 247, 0.28) !important;
    color: #c084fc !important;
}

.muse-tpl-icon-box.is-image {
    background: rgba(59, 130, 246, 0.14) !important;
    border: 1px solid rgba(59, 130, 246, 0.28) !important;
    color: #60a5fa !important;
}

.muse-tpl-icon-box.is-edit {
    background: rgba(234, 179, 8, 0.14) !important;
    border: 1px solid rgba(234, 179, 8, 0.28) !important;
    color: #facc15 !important;
}

.muse-tpl-badges-row {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.muse-tpl-badge-cat {
    font-size: 10.5px !important;
    padding: 3px 9px !important;
    border-radius: 9999px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: #a1a1aa !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.muse-tpl-badge-hl {
    font-size: 10.5px !important;
    font-weight: 600 !important;
    padding: 3px 9px !important;
    border-radius: 9999px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #f4f4f5 !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

.muse-tpl-card-body {
    padding: 16px 18px 8px 18px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    flex: 1 !important;
}

.muse-tpl-card-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    margin: 0 !important;
    letter-spacing: -0.015em !important;
}

.muse-tpl-card-sub {
    font-size: 12px !important;
    color: #d4d4d8 !important;
    font-weight: 500 !important;
    margin: 0 !important;
}

.muse-tpl-card-desc {
    font-size: 11.5px !important;
    color: #8e8e93 !important;
    line-height: 1.55 !important;
    margin: 4px 0 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.muse-tpl-features {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
    margin-top: 10px !important;
}

.muse-tpl-feat-tag {
    font-size: 10px !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: #a1a1aa !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    font-weight: 500 !important;
}

.muse-tpl-card-launch {
    margin: 0 18px 16px 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-top: 12px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #a1a1aa !important;
    transition: all 0.18s ease !important;
}

.muse-home-template-card:hover .muse-tpl-card-launch {
    color: #ffffff !important;
}

.muse-tpl-card-launch strong {
    font-size: 13px !important;
    transition: transform 0.18s ease !important;
}

.muse-home-template-card:hover .muse-tpl-card-launch strong {
    transform: translateX(4px) !important;
    color: #ffffff !important;
}

/* 3-Step Guide Box */
.muse-home-steps-box {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
    padding: 18px 22px !important;
    background: #0d0d12 !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

.muse-home-step-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
}

.muse-home-step-num {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    background: #27272a !important;
    border: 1px solid #3f3f46 !important;
    color: #f4f4f5 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.muse-home-step-text strong {
    display: block !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #f4f4f5 !important;
    margin-bottom: 2px !important;
}

.muse-home-step-text p {
    font-size: 11.5px !important;
    color: #a1a1aa !important;
    line-height: 1.45 !important;
    margin: 0 !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .muse-home-quick-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .muse-home-templates-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .muse-home-steps-box {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 640px) {
    .muse-home-quick-strip {
        grid-template-columns: 1fr !important;
    }
    .muse-home-templates-grid {
        grid-template-columns: 1fr !important;
    }
    .muse-home-filter-row {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .muse-home-search-wrap {
        max-width: none !important;
    }
}



/* ============================================================
   Story & Drama Engine (Dynamic Multi-Shot Timeline)
   ============================================================ */
.story-director-panel,
body #root .quick-video-workspace .quick-compose > .story-director-panel {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    margin-top: 10px !important;
    margin-bottom: 24px !important;
    background: #141418 !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-radius: 14px !important;
    padding: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    min-height: min-content !important;
    height: auto !important;
    overflow: visible !important;
}

.story-genres-bar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

.story-bar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 28px;
}

.story-bar-title-group {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.story-bar-icon {
    font-size: 15px;
    line-height: 1;
}

.story-bar-label {
    font-size: 12px;
    font-weight: 700;
    color: #e4e4e7;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.story-bar-count-badge {
    font-size: 10px;
    font-weight: 600;
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.12);
    border: 1px solid rgba(167, 139, 250, 0.25);
    border-radius: 999px;
    padding: 1px 7px;
    line-height: 1.4;
}

.story-bar-shuffle-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #d4d4d8;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.story-bar-shuffle-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.story-active-genre-card {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px 12px;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.12), rgba(20, 20, 24, 0.8));
    border: 1px solid rgba(167, 139, 250, 0.35);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.story-active-genre-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.story-active-genre-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.story-active-badge-tag {
    font-size: 10px;
    font-weight: 700;
    color: #f5f3ff;
    background: #7c3aed;
    padding: 2px 7px;
    border-radius: 5px;
    letter-spacing: 0.02em;
}

.story-active-name {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

.story-active-status {
    font-size: 10.5px;
    font-weight: 600;
    color: #34d399;
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.25);
    border-radius: 4px;
    padding: 1px 6px;
}

.story-active-desc {
    margin: 0;
    font-size: 11.5px;
    line-height: 1.45;
    color: #d4d4d8;
}

.story-genres-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    width: 100%;
    box-sizing: border-box;
}

.story-genre-grid-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
    padding: 8px 11px;
    border-radius: 11px;
    background: #0d0d12;
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: #a1a1aa;
    cursor: pointer;
    text-align: left;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.story-genre-grid-btn:hover:not(:disabled) {
    background: #14141c;
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-1px);
}

.story-genre-grid-btn.is-selected {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.genre-btn-header {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.genre-btn-icon {
    display: inline-flex;
    align-items: center;
    color: inherit;
    flex-shrink: 0;
}

.genre-btn-name {
    font-size: 11.5px;
    font-weight: 600;
    color: inherit;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.genre-btn-check {
    font-size: 11px;
    font-weight: 700;
    color: #a78bfa;
    flex-shrink: 0;
}

.genre-btn-badge {
    font-size: 9.5px;
    color: #71717a;
    letter-spacing: 0.02em;
}

.story-genre-grid-btn.is-selected .genre-btn-badge {
    color: #c4b5fd;
    font-weight: 500;
}

.story-genre-hooks-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 2px;
}

.story-hooks-label {
    font-size: 11px;
    font-weight: 600;
    color: #a1a1aa;
}

.story-hooks-scroll {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.story-hook-chip {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 7px;
    background: #18181e;
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: #cbd5e1;
    font-size: 11px;
    line-height: 1.4;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}

.story-hook-chip:hover:not(:disabled) {
    background: #22222a;
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.story-hook-chip.is-selected {
    background: rgba(167, 139, 250, 0.12);
    border-color: rgba(167, 139, 250, 0.4);
    color: #e9d5ff;
}

.story-bar-current {
    font-size: 11px;
    font-weight: 600;
    color: #f4f4f5;
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.story-genres-scroll {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-bottom: 5px;
    scrollbar-width: thin;
}

.story-genre-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 7px;
    background: #1c1c22;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #d4d4d8;
    font-size: 11.5px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.story-genre-pill:hover:not(:disabled) {
    background: #24242c;
    border-color: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.story-genre-pill.active {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.06);
}

.story-hero-bar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    background: #18181e;
    border: 1px solid rgba(255, 255, 255, 0.06);
    width: 100%;
    box-sizing: border-box;
}

.story-idea-input-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
}

.story-sub-label {
    font-size: 11px;
    font-weight: 600;
    color: #a1a1aa;
}

.story-idea-input {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    min-height: 52px !important;
    max-height: 120px;
    background: #101014 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 8px !important;
    padding: 8px 10px !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    color: #f4f4f5 !important;
    resize: vertical;
}

.story-idea-btn-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
}

.story-btn-surprise {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    background: #22222a !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #e4e4e7 !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    padding: 7px 4px !important;
    border-radius: 7px !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    text-align: center !important;
}

.story-btn-surprise:hover:not(:disabled) {
    background: #2a2a34 !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.story-btn-breakdown {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 7px 4px !important;
    border-radius: 7px !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    text-align: center !important;
}

.story-pacing-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 8px;
}

.story-pacing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.story-pacing-label {
    font-size: 11px;
    font-weight: 500;
    color: #a1a1aa;
}

.story-pacing-tag {
    font-size: 11px;
    font-weight: 600;
    color: #d4d4d8;
    background: rgba(255, 255, 255, 0.06);
    padding: 1px 6px;
    border-radius: 4px;
}

.story-pacing-toggles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
}

.story-toggle-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    padding: 6px 4px !important;
    border-radius: 7px !important;
    background: #141418 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #a1a1aa !important;
    cursor: pointer !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: center !important;
}

.story-toggle-main {
    font-size: 11.5px;
    font-weight: 600;
    color: #d4d4d8;
}

.story-toggle-sub {
    font-size: 9.5px;
    color: #71717a;
}

.story-toggle-btn.active {
    background: #27272a !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
}

.story-toggle-btn.active .story-toggle-main {
    color: #ffffff !important;
}

.story-toggle-btn.active .story-toggle-sub {
    color: #a1a1aa !important;
}

.story-timeline-strip {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 2px;
    width: 100%;
    box-sizing: border-box;
}

.story-shot-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #18181e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.story-shot-header {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.story-shot-num {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.story-shot-num strong {
    font-size: 10.5px;
    font-weight: 700;
    color: #ffffff;
    background: #27272a;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    white-space: nowrap;
}

.story-shot-time {
    font-size: 10.5px;
    font-weight: 600;
    color: #a1a1aa;
    white-space: nowrap;
}

.story-shot-title {
    font-size: 11.5px;
    font-weight: 500;
    color: #e4e4e7;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.story-shot-textarea {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    background: #101014 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 6px !important;
    color: #e4e4e7 !important;
    padding: 8px 10px !important;
    resize: vertical;
    min-height: 56px;
}

.story-shot-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.story-shot-camera-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    box-sizing: border-box;
}

.story-shot-camera-field label {
    font-size: 10.5px;
    font-weight: 500;
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.story-camera-select {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    font-size: 11.5px !important;
    background: #121216 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 6px !important;
    color: #f4f4f5 !important;
    padding: 5px 8px !important;
    height: 32px !important;
}

.story-shot-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
}

.story-btn-twist {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    font-size: 11px !important;
    height: 30px !important;
    padding: 0 4px !important;
    border-radius: 6px !important;
    background: #22222a !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #d4d4d8 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    text-align: center !important;
}

.story-btn-twist:hover:not(:disabled) {
    background: #2a2a34 !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}

.story-btn-single {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    font-size: 11px !important;
    height: 30px !important;
    padding: 0 4px !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    text-align: center !important;
}

.story-btn-single:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.story-footer-guidance {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 8px 10px;
    width: 100%;
    box-sizing: border-box;
}

.story-guidance-icon {
    font-size: 14px;
    line-height: 1.4;
    flex-shrink: 0;
}

.story-footer-guidance p {
    font-size: 11px;
    color: #a1a1aa;
    line-height: 1.45;
    margin: 0;
}

/* Quick Compose Scroll & Submit Balancing in Story Mode */
.quick-video-workspace .quick-compose {
    padding-bottom: 28px !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
}

.quick-video-workspace .quick-compose > .story-director-panel {
    flex-shrink: 0 !important;
    flex: 0 0 auto !important;
    min-height: min-content !important;
}

.quick-video-workspace > .quick-compose {
    padding-bottom: 26px !important;
}

.quick-video-workspace .quick-submit {
    position: sticky !important;
    bottom: -1px !important;
    margin-top: 14px !important;
    z-index: 10 !important;
    height: 44px !important;
    min-height: 44px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
    background: linear-gradient(180deg, #ffffff 0%, #ededf2 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    color: #09090b !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65), 0 0 18px rgba(255, 255, 255, 0.12), 0 -12px 24px rgba(13, 13, 18, 0.95) !important;
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease !important;
}

.quick-video-workspace .quick-submit:hover:not(:disabled) {
    transform: translateY(-1px) !important;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.75), 0 0 24px rgba(255, 255, 255, 0.18) !important;
    filter: brightness(1.03) !important;
}

.quick-video-workspace .quick-submit:active:not(:disabled) {
    transform: translateY(0) !important;
    filter: brightness(0.97) !important;
}

/* ============================================================
   Story Timeline & Movie Stitching Bar in Viewer
   ============================================================ */
.muse-story-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 16px;
    background: #141418;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
    z-index: 5;
}

.muse-story-bar-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #f4f4f5;
}

.muse-story-duration-tag {
    font-size: 11px;
    font-weight: 600;
    color: #c4b5fd;
    background: rgba(196, 181, 253, 0.1);
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid rgba(196, 181, 253, 0.2);
}

.muse-story-tabs {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.muse-story-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 7px;
    background: #1c1c22;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #d4d4d8;
    font-size: 11.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.muse-story-tab-btn:hover {
    background: #262630;
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.muse-story-tab-btn.is-active {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.45);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

.muse-story-tab-btn.is-full-movie {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(99, 102, 241, 0.18));
    border-color: rgba(168, 85, 247, 0.35);
    color: #e9d5ff;
    font-weight: 600;
}

.muse-story-tab-btn.is-full-movie:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.28), rgba(99, 102, 241, 0.28));
    border-color: rgba(168, 85, 247, 0.6);
    color: #ffffff;
}

.muse-story-tab-btn.is-full-movie.is-active {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.4), rgba(99, 102, 241, 0.4));
    border-color: #c084fc;
    color: #ffffff;
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.25);
}

.story-tab-num {
    font-weight: 700;
    font-size: 10.5px;
    color: #a1a1aa;
}

.muse-story-tab-btn.is-active .story-tab-num {
    color: #ffffff;
}

.story-tab-label {
    font-size: 11.5px;
}

.story-tab-dur {
    font-size: 10px;
    color: #71717a;
    background: rgba(255, 255, 255, 0.06);
    padding: 1px 4px;
    border-radius: 3px;
}

.story-tab-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #eab308;
    animation: pulse 1.5s infinite;
}

.muse-story-stitch-btn {
    font-size: 11.5px !important;
    padding: 5px 12px !important;
    border-radius: 7px !important;
    font-weight: 600 !important;
    background: #ffffff !important;
    color: #09090b !important;
    cursor: pointer !important;
}

/* ============================================================
   Story Continuity & Chaining Controls
   ============================================================ */
.story-continuity-control {
    background: #18181e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9px;
    padding: 10px 12px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.story-continuity-top {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.story-continuity-label {
    font-size: 11.5px;
    font-weight: 600;
    color: #e4e4e7;
    display: flex;
    align-items: center;
    gap: 5px;
}

.story-continuity-pills {
    display: flex;
    gap: 6px;
}

.story-continuity-pill {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 7px 10px;
    border-radius: 7px;
    background: #202028;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #a1a1aa;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.story-continuity-pill:hover:not(:disabled) {
    background: #272732;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.story-continuity-pill.active {
    background: rgba(168, 85, 247, 0.15);
    border-color: #a855f7;
    color: #e9d5ff;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

.story-continuity-sub {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 8px;
}

.story-transition-pick {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.story-transition-pick label {
    font-size: 11px;
    color: #a1a1aa;
    white-space: nowrap;
}

.story-transition-select {
    font-size: 11px !important;
    padding: 4px 8px !important;
    height: 28px !important;
    background: #111115 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 6px !important;
    color: #f4f4f5 !important;
}

.story-shot-origin {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
}

.story-shot-origin.is-root {
    background: rgba(255, 255, 255, 0.07);
    color: #a1a1aa;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.story-shot-origin.is-chain {
    background: rgba(168, 85, 247, 0.12);
    color: #c4b5fd;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.muse-viewer-tail-btn {
    color: #c4b5fd !important;
    border-color: rgba(168, 85, 247, 0.3) !important;
    background: rgba(168, 85, 247, 0.08) !important;
}

.muse-viewer-tail-btn:hover:not(:disabled) {
    background: rgba(168, 85, 247, 0.2) !important;
    border-color: #a855f7 !important;
    color: #ffffff !important;
}

/* Expert & Philosophy Dialogue Hooks Bar */
.studio-expert-hooks-bar {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(168, 85, 247, 0.05)) !important;
    border: 1px solid rgba(245, 158, 11, 0.25) !important;
    border-radius: 8px !important;
    padding: 8px 10px !important;
    margin-bottom: 8px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

.studio-expert-hooks-title {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #fbbf24 !important;
}

.studio-expert-hooks-title small {
    font-size: 10px !important;
    color: #a1a1aa !important;
    font-weight: 400 !important;
}

.studio-expert-hooks-pills {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
}

.studio-expert-hook-btn {
    background: #18181b !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 6px !important;
    padding: 4px 8px !important;
    font-size: 11px !important;
    color: #e4e4e7 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    white-space: nowrap !important;
}

.studio-expert-hook-btn:hover:not(:disabled) {
    background: rgba(245, 158, 11, 0.2) !important;
    border-color: #fbbf24 !important;
    color: #ffffff !important;
}

/* Expert Seated Visual Artwork */
.studio-visual-artwork.is-expert-seated {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    padding: 12px !important;
    background: #111114 !important;
    border: 1px solid #27272a !important;
    border-radius: 8px !important;
    margin-bottom: 10px !important;
}

.studio-expert-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 3px !important;
    text-align: center !important;
}

.studio-expert-card span {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #f4f4f5 !important;
}

.studio-expert-card small {
    font-size: 9.5px !important;
    color: #a1a1aa !important;
}

.studio-expert-avatar {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #6366f1, #a855f7) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.studio-expert-badge-top {
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #fbbf24 !important;
    background: rgba(245, 158, 11, 0.15) !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
}

/* Sticky Video Tools Tabs */
.muse-video-tools-panel .flow-preset-groups {
    position: sticky !important;
    top: 0 !important;
    z-index: 25 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 60px !important;
    height: auto !important;
    box-sizing: border-box !important;
    background: rgba(18, 18, 23, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    padding: 4px !important;
    margin: 0 0 14px 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 11px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5) !important;
}

.muse-video-tools-panel .flow-preset-groups button,
.muse-video-tools-panel .flow-preset-groups .flow-tab-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    height: auto !important;
    min-height: 52px !important;
    padding: 8px 6px 9px !important;
    border-radius: 8px !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    color: #a1a1aa !important;
    cursor: pointer !important;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
    overflow: visible !important;
    text-align: center !important;
    line-height: normal !important;
}

.muse-video-tools-panel .flow-preset-groups button:hover,
.muse-video-tools-panel .flow-preset-groups .flow-tab-btn:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #f4f4f5 !important;
}

.muse-video-tools-panel .flow-preset-groups button[aria-pressed=true],
.muse-video-tools-panel .flow-preset-groups button.is-active,
.muse-video-tools-panel .flow-preset-groups .flow-tab-btn.is-active {
    background: #23232c !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

/* Video Length Mode Selector Bar */
.studio-video-length-selector {
    background: #16161c !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px !important;
    padding: 10px 12px !important;
    margin: 8px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.studio-video-length-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-size: 11.5px !important;
}

.studio-video-length-head strong {
    color: #f4f4f5 !important;
    font-weight: 600 !important;
}

.studio-length-badge {
    font-size: 10.5px !important;
    color: #c4b5fd !important;
    background: rgba(168, 85, 247, 0.15) !important;
    border: 1px solid rgba(168, 85, 247, 0.3) !important;
    padding: 2px 8px !important;
    border-radius: 12px !important;
    font-weight: 500 !important;
}

.studio-video-length-tabs {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
}

.studio-length-tab-btn {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    background: #1c1c24 !important;
    color: #a1a1aa !important;
    cursor: pointer !important;
    text-align: left !important;
    transition: all 0.15s ease !important;
}

.studio-length-tab-btn:hover {
    background: #24242e !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: #f4f4f5 !important;
}

.studio-length-tab-btn.is-active {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(99, 102, 241, 0.15)) !important;
    border-color: #a855f7 !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.25) !important;
}

.studio-length-tab-btn .length-tab-icon {
    font-size: 18px !important;
    line-height: 1 !important;
}

.studio-length-tab-btn .length-tab-texts {
    display: flex !important;
    flex-direction: column !important;
    gap: 1px !important;
}

.studio-length-tab-btn .length-tab-texts strong {
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: #f4f4f5 !important;
}

.studio-length-tab-btn .length-tab-texts small {
    font-size: 9.5px !important;
    color: #a1a1aa !important;
}

.studio-length-tab-btn.is-active .length-tab-texts small {
    color: #d8b4fe !important;
}

/* Dual Submit Action Buttons */
.studio-submit-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    margin-top: 6px !important;
}

.studio-quick-long-btn {
    background: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #08080b !important;
    padding: 12px 18px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border-radius: 9999px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.2) !important;
}

.studio-quick-long-btn:hover:not(:disabled) {
    background: #f4f4f5 !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6), 0 0 28px rgba(255, 255, 255, 0.35) !important;
    transform: translateY(-1.5px) !important;
}

.studio-quick-long-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

.studio-quick-short-btn {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #d4d4d8 !important;
    padding: 9px 16px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    border-radius: 9999px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    transition: all 0.16s ease !important;
}

.studio-quick-short-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.09) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   Speech Deconstruction & Pacing Studio (Triết lý & Lời thoại đạo lý)
   ========================================================================== */
.story-speech-studio {
    background: #0d0d12 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    padding: 16px !important;
    margin-bottom: 14px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    box-sizing: border-box !important;
    position: relative !important;
}

.story-speech-studio-header {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 10px !important;
}

.story-speech-title-box {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
}

.story-speech-title-row {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
}

.story-speech-icon {
    font-size: 16px !important;
}

.story-speech-title {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    letter-spacing: -0.1px !important;
}

.story-speech-ai-tag {
    font-size: 9.5px !important;
    font-weight: 700 !important;
    color: #c084fc !important;
    background: rgba(168, 85, 247, 0.12) !important;
    border: 1px solid rgba(168, 85, 247, 0.28) !important;
    padding: 2px 8px !important;
    border-radius: 9999px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
}

.story-speech-subtitle {
    font-size: 11.5px !important;
    color: #71717a !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

/* Presets Bar */
.story-speech-presets-bar {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

.story-speech-presets-label {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #c4b5fd !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.story-speech-presets-scroll {
    display: flex !important;
    gap: 6px !important;
    overflow-x: auto !important;
    padding-bottom: 4px !important;
}

.story-speech-presets-scroll::-webkit-scrollbar {
    height: 4px;
}
.story-speech-presets-scroll::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.3);
    border-radius: 4px;
}

.story-speech-preset-btn {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #a1a1aa !important;
    padding: 5px 12px !important;
    font-size: 11px !important;
    border-radius: 9999px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: all 0.16s ease !important;
}

.story-speech-preset-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

.story-speech-preset-btn.is-active {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1) !important;
}

/* Speech Textarea */
.story-speech-input-wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

.story-speech-textarea {
    width: 100% !important;
    min-height: 76px !important;
    background: #060608 !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-radius: 12px !important;
    padding: 10px 14px !important;
    color: #f4f4f5 !important;
    font-size: 12.5px !important;
    line-height: 1.55 !important;
    resize: vertical !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
    transition: all 0.18s ease !important;
}

.story-speech-textarea:focus {
    border-color: rgba(255, 255, 255, 0.3) !important;
    outline: none !important;
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.05) !important;
}

/* Stats Dashboard Grid */
.story-speech-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
}

.story-stat-card {
    background: #14131d !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    padding: 8px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

.story-stat-card.highlight {
    background: rgba(124, 58, 237, 0.16) !important;
    border-color: rgba(168, 85, 247, 0.38) !important;
}

.story-stat-card .stat-label {
    font-size: 10px !important;
    color: #a1a1aa !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
}

.story-stat-card .stat-value {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
}

.story-stat-card .stat-hint {
    font-size: 9.5px !important;
    color: #c4b5fd !important;
}

/* Deconstructed Segments List */
.story-speech-segments-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.story-speech-list-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin-bottom: 2px !important;
}

.story-speech-list-title {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #c4b5fd !important;
}

.story-btn-autobalance {
    background: rgba(168, 85, 247, 0.15) !important;
    border: 1px solid rgba(168, 85, 247, 0.4) !important;
    color: #e9d5ff !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.story-btn-autobalance:hover:not(:disabled) {
    background: rgba(168, 85, 247, 0.3) !important;
    color: #ffffff !important;
    border-color: #a855f7 !important;
}

.story-speech-seg-card {
    background: #13121b !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    padding: 9px 11px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    transition: border-color 0.2s ease !important;
}

.story-speech-seg-card.has-warning {
    border-color: rgba(239, 68, 68, 0.35) !important;
    background: rgba(239, 68, 68, 0.04) !important;
}

.story-speech-seg-card.has-short {
    border-color: rgba(59, 130, 246, 0.3) !important;
    background: rgba(59, 130, 246, 0.03) !important;
}

.story-speech-seg-top {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
}

.story-speech-seg-title {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #e4e4e7 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.story-speech-seg-pill {
    font-size: 10px !important;
    font-weight: 600 !important;
    padding: 2px 7px !important;
    border-radius: 6px !important;
}

.pacing-optimal {
    background: rgba(16, 185, 129, 0.15) !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    color: #34d399 !important;
}

.pacing-extended {
    background: rgba(245, 158, 11, 0.15) !important;
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
    color: #fbbf24 !important;
}

.pacing-warning {
    background: rgba(239, 68, 68, 0.15) !important;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
    color: #f87171 !important;
}

.pacing-short {
    background: rgba(59, 130, 246, 0.15) !important;
    border: 1px solid rgba(59, 130, 246, 0.35) !important;
    color: #60a5fa !important;
}

.pacing-empty {
    background: rgba(113, 113, 122, 0.15) !important;
    border: 1px solid rgba(113, 113, 122, 0.3) !important;
    color: #a1a1aa !important;
}

/* Pacing Advice Box with 1-click Quick Fixes */
.story-speech-advice-box {
    border-radius: 8px !important;
    padding: 7px 9px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

.story-speech-advice-box.is-short {
    background: rgba(59, 130, 246, 0.1) !important;
    border: 1px solid rgba(59, 130, 246, 0.28) !important;
}

.story-speech-advice-box.is-warning {
    background: rgba(239, 68, 68, 0.1) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

.advice-text {
    display: flex !important;
    align-items: flex-start !important;
    gap: 6px !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
    color: #e4e4e7 !important;
}

.advice-icon {
    font-size: 12px !important;
    flex-shrink: 0 !important;
}

.advice-actions {
    display: flex !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
}

.advice-btn {
    background: linear-gradient(135deg, #7c3aed, #4f46e5) !important;
    color: #ffffff !important;
    border: 1px solid #a855f7 !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    padding: 3px 8px !important;
    border-radius: 5px !important;
    cursor: pointer !important;
}

.advice-btn:hover {
    background: linear-gradient(135deg, #9333ea, #6366f1) !important;
}

.advice-btn-alt {
    background: #1e1e28 !important;
    color: #d4d4d8 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    font-size: 10.5px !important;
    padding: 3px 8px !important;
    border-radius: 5px !important;
    cursor: pointer !important;
}

.advice-btn-alt:hover {
    background: #2b2b38 !important;
    color: #ffffff !important;
}

.story-speech-seg-input {
    width: 100% !important;
    min-height: 48px !important;
    background: #0a0a0f !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 7px !important;
    padding: 7px 9px !important;
    color: #f4f4f5 !important;
    font-size: 11.5px !important;
    line-height: 1.45 !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
    resize: vertical !important;
}

.story-speech-seg-input:focus {
    border-color: #a855f7 !important;
    outline: none !important;
}

/* Duration Quick Toggle Row */
.story-speech-seg-dur-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-top: 2px !important;
}

.seg-dur-label {
    font-size: 10.5px !important;
    color: #a1a1aa !important;
}

.seg-dur-pills {
    display: flex !important;
    gap: 4px !important;
}

.seg-dur-pill {
    background: #181822 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #a1a1aa !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    padding: 2px 7px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.seg-dur-pill:hover:not(:disabled) {
    background: #252238 !important;
    color: #ffffff !important;
    border-color: rgba(168, 85, 247, 0.4) !important;
}

.seg-dur-pill.active {
    background: #7c3aed !important;
    border-color: #a855f7 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* Action Buttons */
.story-speech-actions-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin-top: 2px !important;
    flex-wrap: wrap !important;
}

.story-btn-sync-speech {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 9px 16px !important;
    border-radius: 9999px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.story-btn-sync-speech:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.22) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 16px rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-1px) !important;
}

.story-btn-autobalance-main {
    background: rgba(124, 58, 237, 0.2) !important;
    border: 1px solid rgba(168, 85, 247, 0.5) !important;
    color: #e9d5ff !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    padding: 7px 12px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    transition: all 0.15s ease !important;
}

.story-btn-autobalance-main:hover:not(:disabled) {
    background: rgba(124, 58, 237, 0.35) !important;
    color: #ffffff !important;
}

.story-btn-reanalyze {
    background: #1e1e28 !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #e4e4e7 !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    padding: 7px 12px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.story-btn-reanalyze:hover:not(:disabled) {
    background: #2a293a !important;
    color: #ffffff !important;
}

/* Callout inside shot card */
.story-shot-speech-callout {
    background: rgba(124, 58, 237, 0.1) !important;
    border: 1px dashed rgba(168, 85, 247, 0.38) !important;
    border-radius: 8px !important;
    padding: 8px 10px !important;
    margin: 6px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.story-speech-callout-header {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.story-speech-callout-icon {
    font-size: 12px !important;
}

.story-speech-callout-label {
    font-size: 10.5px !important;
    font-weight: 700 !important;
    color: #c4b5fd !important;
}

.story-speech-callout-badge {
    font-size: 9.5px !important;
    font-weight: 600 !important;
    padding: 1px 6px !important;
    border-radius: 4px !important;
    margin-left: auto !important;
}

.story-speech-callout-quote {
    font-size: 11.5px !important;
    color: #ffffff !important;
    font-style: italic !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

.story-speech-callout-timing {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px 12px !important;
    font-size: 9.5px !important;
    color: #a1a1aa !important;
}

.story-shot-pause-pill {
    background: rgba(16, 185, 129, 0.15) !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
    color: #6ee7b7 !important;
    padding: 2px 7px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    font-size: 9.5px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
}

/* Pacing and Pause Toolbar */
.story-pacing-toolbar {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin: 8px 0 !important;
    background: rgba(15, 15, 22, 0.6) !important;
    border: 1px solid rgba(168, 85, 247, 0.2) !important;
    border-radius: 8px !important;
    padding: 6px 10px !important;
}

.story-pacing-modes {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.story-pacing-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #c4b5fd !important;
}

.story-pacing-pills {
    display: flex !important;
    gap: 5px !important;
}

.story-pacing-pill {
    padding: 3px 8px !important;
    font-size: 10.5px !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #cbd5e1 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.story-pacing-pill:hover:not(:disabled) {
    background: rgba(139, 92, 246, 0.2) !important;
    border-color: #8b5cf6 !important;
    color: #ffffff !important;
}

.story-pacing-pill.active {
    background: rgba(139, 92, 246, 0.35) !important;
    border-color: #a855f7 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.3) !important;
}

.story-btn-snappy-optimize {
    background: rgba(59, 130, 246, 0.16) !important;
    border: 1px solid rgba(96, 165, 250, 0.4) !important;
    color: #93c5fd !important;
    font-size: 10.5px !important;
    padding: 4px 9px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    margin-left: auto !important;
}

.story-btn-snappy-optimize:hover:not(:disabled) {
    background: rgba(59, 130, 246, 0.3) !important;
    border-color: #60a5fa !important;
    color: #ffffff !important;
}

/* Sidebar Story Duration Box in Quick Settings */
.story-sidebar-dur-box {
    background: rgba(139, 92, 246, 0.08) !important;
    border: 1px solid rgba(168, 85, 247, 0.28) !important;
    border-radius: 8px !important;
    padding: 8px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    margin-top: 4px !important;
}

.story-sidebar-dur-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.story-sidebar-dur-title {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #e4e4e7 !important;
}

.story-sidebar-dur-badge {
    font-size: 11px !important;
    font-weight: 800 !important;
    color: #c4b5fd !important;
    background: rgba(168, 85, 247, 0.25) !important;
    padding: 1px 7px !important;
    border-radius: 4px !important;
}

.story-sidebar-dur-shots {
    display: flex !important;
    gap: 4px !important;
    flex-wrap: wrap !important;
}

.story-sidebar-shot-pill {
    font-size: 9.5px !important;
    padding: 1px 6px !important;
    border-radius: 4px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    font-weight: 600 !important;
}

.story-sidebar-dur-hint {
    font-size: 9.5px !important;
    color: #a1a1aa !important;
    line-height: 1.35 !important;
}

/* Smart Tail-Trim Control in Story Continuity */
.story-smart-trim-card {
    background: rgba(16, 185, 129, 0.05) !important;
    border: 1px solid rgba(16, 185, 129, 0.22) !important;
    border-radius: 8px !important;
    padding: 10px 12px !important;
    margin-top: 8px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.story-smart-trim-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
}

.story-smart-trim-toggle {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    user-select: none !important;
}

.story-smart-trim-toggle input[type="checkbox"] {
    accent-color: #10b981 !important;
    width: 15px !important;
    height: 15px !important;
    cursor: pointer !important;
}

.story-smart-trim-toggle-label {
    font-size: 11.5px !important;
    font-weight: 700 !important;
    color: #e4e4e7 !important;
}

.story-smart-trim-badge {
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 2px 7px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #94a3b8 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.story-smart-trim-badge.is-on {
    background: rgba(16, 185, 129, 0.18) !important;
    color: #34d399 !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
}

.story-smart-trim-body {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding-top: 4px !important;
}

.story-smart-trim-pacing {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}

.story-trim-pacing-title {
    font-size: 11px !important;
    color: #a1a1aa !important;
    font-weight: 600 !important;
}

.story-trim-pills {
    display: flex !important;
    gap: 5px !important;
}

.story-trim-pill {
    font-size: 10px !important;
    font-weight: 600 !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.story-trim-pill:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.story-trim-pill.active {
    background: rgba(16, 185, 129, 0.25) !important;
    color: #6ee7b7 !important;
    border-color: #10b981 !important;
    font-weight: 700 !important;
}

.story-trim-summary-box {
    background: rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 6px !important;
    padding: 7px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.story-trim-summary-shots {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
}

.story-trim-shot-row {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 10.5px !important;
}

.story-trim-shot-name {
    font-weight: 700 !important;
    color: #94a3b8 !important;
    min-width: 48px !important;
}

.story-trim-shot-action {
    font-size: 10px !important;
    font-weight: 600 !important;
}

.story-trim-shot-action.is-cut {
    color: #34d399 !important;
}

.story-trim-shot-action.is-hold {
    color: #cbd5e1 !important;
}

.story-trim-hint {
    font-size: 10px !important;
    color: #71717a !important;
    margin: 3px 0 0 0 !important;
    line-height: 1.35 !important;
}






/* ==========================================================================
   September Studio - Perfectly Balanced Unified Media Viewer Modal
   ========================================================================== */
.monday-video-modal-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 10050 !important;
    background: rgba(4, 6, 12, 0.92) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: clamp(12px, 2vw, 32px) !important;
    animation: mondayFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes mondayFadeIn {
    from { opacity: 0; transform: scale(0.985); }
    to { opacity: 1; transform: scale(1); }
}

.monday-video-modal-card {
    display: flex !important;
    flex-direction: column !important;
    background: #0d0f17 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 20px !important;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.92), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
    overflow: hidden !important;
    max-height: 94vh !important;
    max-width: 95vw !important;
    position: relative !important;
}

.monday-video-modal-card.is-vertical {
    width: min(600px, 94vw) !important;
    min-width: min(480px, 94vw) !important;
}

.monday-video-modal-card.is-landscape {
    width: min(1040px, 94vw) !important;
    min-width: min(640px, 94vw) !important;
}

.monday-video-modal-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 20px !important;
    background: rgba(18, 21, 31, 0.98) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    gap: 14px !important;
    flex-shrink: 0 !important;
    min-height: 52px !important;
    box-sizing: border-box !important;
}

.monday-video-modal-title-group {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    min-width: 0 !important;
    flex: 1 !important;
}

.monday-video-modal-badge {
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 4px 9px !important;
    border-radius: 6px !important;
    color: #fff !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.monday-video-modal-badge.badge-video {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35) !important;
}

.monday-video-modal-badge.badge-ref {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35) !important;
}

.monday-video-modal-badge.badge-image {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35) !important;
}

.monday-video-modal-counter {
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #e2e8f0 !important;
    font-family: ui-monospace, monospace !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.monday-video-modal-tag {
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    background: rgba(59, 130, 246, 0.14) !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    color: #93c5fd !important;
    font-family: ui-monospace, monospace !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.monday-video-modal-title {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #f1f5f9 !important;
    margin: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    flex: 1 !important;
    min-width: 0 !important;
    line-height: 1.3 !important;
}

.monday-video-modal-header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
}

.monday-video-tool-btn {
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 6px 12px !important;
    height: 30px !important;
    box-sizing: border-box !important;
    border-radius: 7px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #e2e8f0 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
}

.monday-video-tool-btn:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
}

.monday-video-close-btn {
    width: 30px !important;
    height: 30px !important;
    box-sizing: border-box !important;
    border-radius: 7px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: #94a3b8 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.15s !important;
    padding: 0 !important;
}

.monday-video-close-btn:hover {
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: rgba(239, 68, 68, 0.45) !important;
    color: #fca5a5 !important;
}

.monday-video-modal-stage {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #05060a !important;
    overflow: hidden !important;
    position: relative !important;
    max-height: calc(84vh - 120px) !important;
    padding: 12px !important;
    box-sizing: border-box !important;
}

.monday-video-modal-stage video {
    display: block !important;
    max-height: calc(84vh - 144px) !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 10px !important;
    outline: none !important;
}

.monday-video-modal-stage img {
    display: block !important;
    max-height: calc(84vh - 144px) !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 10px !important;
    transition: transform 0.2s ease !important;
    user-select: none !important;
    cursor: zoom-in !important;
}

.monday-video-modal-stage.is-zoomed {
    overflow: auto !important;
    display: block !important;
    text-align: center !important;
}

.monday-video-modal-stage.is-zoomed img {
    max-height: none !important;
    max-width: none !important;
    margin: auto !important;
    cursor: zoom-out !important;
}

.monday-video-stage-arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: rgba(14, 17, 26, 0.82) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.18s ease !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.65) !important;
    padding: 0 !important;
}

.monday-video-stage-arrow:hover:not(:disabled) {
    background: rgba(37, 99, 235, 0.9) !important;
    border-color: rgba(96, 165, 250, 0.6) !important;
    transform: translateY(-50%) scale(1.08) !important;
}

.monday-video-stage-arrow:disabled {
    opacity: 0.15 !important;
    cursor: not-allowed !important;
}

.monday-video-stage-arrow.prev {
    left: 16px !important;
}

.monday-video-stage-arrow.next {
    right: 16px !important;
}

.monday-video-modal-prompt-row {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 20px !important;
    background: rgba(14, 17, 26, 0.96) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
    box-sizing: border-box !important;
}

.monday-video-prompt-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
    white-space: nowrap !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    flex-shrink: 0 !important;
}

.monday-video-prompt-text {
    font-size: 12px !important;
    color: #e2e8f0 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    flex: 1 !important;
}

.monday-video-modal-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 20px !important;
    background: rgba(18, 21, 31, 0.98) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    gap: 12px !important;
    flex-shrink: 0 !important;
    min-height: 58px !important;
    box-sizing: border-box !important;
}

.monday-video-footer-left {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
}

.monday-video-meta-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 11px !important;
    color: #94a3b8 !important;
    font-family: ui-monospace, monospace !important;
    background: rgba(255, 255, 255, 0.05) !important;
    padding: 5px 10px !important;
    border-radius: 6px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    white-space: nowrap !important;
}

.monday-video-meta-sep {
    color: #64748b !important;
}

.monday-video-footer-right {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
}

.monday-video-action-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    height: 36px !important;
    padding: 0 14px !important;
    box-sizing: border-box !important;
    border-radius: 9px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: #e2e8f0 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    white-space: nowrap !important;
}

.monday-video-action-btn:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    color: #fff !important;
}

.monday-video-action-btn.primary {
    background: #2563eb !important;
    border-color: #3b82f6 !important;
    color: #fff !important;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35) !important;
}

.monday-video-action-btn.primary:hover {
    background: #1d4ed8 !important;
    border-color: #60a5fa !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.5) !important;
}

.monday-video-action-btn.danger {
    background: rgba(239, 68, 68, 0.12) !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
    color: #f87171 !important;
}

.monday-video-action-btn.danger:hover {
    background: rgba(239, 68, 68, 0.25) !important;
    border-color: rgba(239, 68, 68, 0.45) !important;
    color: #fca5a5 !important;
}

/* Enhanced Library Video Card Hover Effect */
.sx-media-card[data-kind="video"] .sx-media-open {
    position: relative !important;
    cursor: pointer !important;
    display: block !important;
}

.sx-media-card[data-kind="video"] .sx-media-open:hover video,
.sx-media-card[data-kind="video"] .sx-media-open:hover img {
    filter: brightness(1.1) !important;
    transform: scale(1.02) !important;
    transition: transform 0.2s ease, filter 0.2s ease !important;
}
