.home-ai-tools{display:flex;align-items:center;gap:8px;color:var(--home-muted);font:12px/20px system-ui;}
.home-attach-button{display:grid;place-items:center;flex:none;width:30px;height:30px;padding:6px;border:1px solid var(--home-line);border-radius:8px;background:transparent;color:var(--home-ink);cursor:pointer;}
.home-attach-button svg{width:18px;height:18px;}
.home-attach-button:hover{background:var(--home-soft);}
.home-ai-attachments{display:flex;flex-wrap:wrap;gap:6px;}.home-ai-attachments:not(:empty){margin-top:10px;}
.home-file-chip{display:flex;align-items:center;gap:6px;max-width:100%;padding:3px 7px;border-radius:6px;background:var(--home-soft);color:var(--home-ink);font:11px/20px system-ui;}
.home-file-chip>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.home-file-chip button{flex:none;border:0;background:transparent;color:inherit;cursor:pointer;}
.home-recent-title,.project-heading-add{display:flex;align-items:center;gap:5px;}
.home-recent-title .home-title-add,.project-heading-add button{display:grid;place-items:center;width:26px;height:26px;padding:0;border:0;border-radius:5px;background:transparent;color:var(--home-muted,#737b85);font:20px/1 system-ui;cursor:pointer;}
.project-heading-add{margin-right:12px;font:500 14px/22px system-ui;white-space:nowrap;}
.home-recent-title .home-title-add:hover,.project-heading-add button:hover{background:#88888812;}
#homeRecentProjects{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 12px;}
#projectAIChat .ai-input-wrap{border-radius:20px;background:#fff;box-shadow:0 5px 16px #161e240b;}
#editorView #projectAIChat #aiChatInput,#editorView #projectAIChat #aiChatInput:focus{border-radius:20px;padding:14px 14px 48px;background:transparent;}
#projectAIChat .ai-send-btn{right:12px;bottom:12px;}
#editorView #directorMainVideo .director-fixed-content-card{box-sizing:border-box;border:1px solid #d5d9da;border-radius:20px;background:#fff;overflow:hidden;}
html.dark-mode #projectAIChat .ai-input-wrap,html.dark-mode #editorView #directorMainVideo .director-fixed-content-card{background:#25282a;border-color:#454a4c;}
@media(max-width:900px){#homeRecentProjects{grid-template-columns:repeat(2,minmax(0,1fr));}.project-heading-add{margin-right:6px;}}
@media(max-width:520px){#homeRecentProjects{grid-template-columns:1fr;}.project-heading-add{width:100%;}}

.project-table-header-add{display:inline-grid;place-items:center;width:24px;height:24px;margin-left:5px;padding:0;border:0;border-radius:4px;background:transparent;color:inherit;font:18px/1 system-ui;vertical-align:middle;cursor:pointer;}
.project-table-header-add:hover{background:#88888815;}

#projectAIChat .ai-input-wrap{flex-direction:column;box-shadow:0 8px 20px #161e2410;}
#editorView #projectAIChat #aiChatInput,#editorView #projectAIChat #aiChatInput:focus{padding-bottom:48px;}
#projectAIChat .project-ai-attach{position:absolute;left:12px;bottom:12px;display:grid;place-items:center;width:28px;height:28px;padding:5px;border:1px solid var(--chat-line);border-radius:8px;background:transparent;color:var(--chat-muted);cursor:pointer;}
.project-ai-attach svg{width:17px;height:17px;}
#projectAIChat .project-ai-attach:hover{background:var(--chat-hover);}
#projectAIChat .project-ai-attachments:not(:empty){margin:0 12px 46px;}
#projectAIChat .home-file-chip{background:var(--chat-user);color:var(--chat-ink);}
html.dark-mode #projectAIChat .ai-input-wrap{box-shadow:0 8px 20px #0002;}

.project-table-name-heading{display:inline-flex;align-items:center;justify-content:flex-start;gap:4px;vertical-align:middle;white-space:nowrap;}
#projectTableView .project-table-name-heading>.project-header-sort{flex:0 0 auto;width:auto;min-width:0;margin:0;}
#projectTableView .project-table-name-heading>.project-table-header-add{flex:0 0 24px;margin:0;}
