.route-progress{z-index:100;pointer-events:none;height:2px;animation:0s .15s both route-progress-reveal;position:fixed;inset:0 0 auto;overflow:hidden}.route-progress-line{background:var(--primary);transform-origin:0;width:100%;height:100%;animation:12s cubic-bezier(.1,.8,.2,1) forwards route-progress-advance;display:block}@keyframes route-progress-reveal{0%{opacity:0}to{opacity:1}}@keyframes route-progress-advance{0%{transform:scaleX(.12)}to{transform:scaleX(.9)}}@media (prefers-reduced-motion:reduce){.route-progress-line{animation:none;transform:scaleX(.65)}}.collection-page,.collection-page.assets-page,.collection-page.templates-page{width:100%;min-width:0;max-width:1280px;margin:0 auto;padding:20px 8px 28px}.collection-page .collection-heading{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin:0 0 14px;display:flex}.collection-title{flex-wrap:wrap;align-items:baseline;gap:12px;min-width:0;display:flex}.collection-count{color:var(--muted-foreground);font-size:12px}.collection-page .collection-heading h1{letter-spacing:-.5px;margin:0;font-size:22px;font-weight:650;line-height:32px}.collection-page .collection-heading p{color:var(--muted-foreground);margin:0;font-size:13px}.collection-actions,.collection-tools,.collection-filters{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.collection-page .collection-toolbar,.collection-page .asset-toolbar{border-bottom:1px solid var(--border);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px;padding-bottom:10px;display:flex}.collection-search{width:180px;min-width:0;display:block;position:relative}.collection-search>svg{width:14px;height:14px;color:var(--muted-foreground);position:absolute;top:50%;left:8px;transform:translateY(-50%)}.collection-page .collection-search input{background:var(--card);width:100%;max-width:none;padding-left:28px}.collection-page .collection-tools [data-slot=select-trigger]{background:var(--card)}.collection-page .collection-heading button,.collection-page .collection-toolbar button,.collection-page .asset-toolbar button,.collection-page .collection-search input,.collection-page .asset-search input{border-radius:6px;height:28px;min-height:28px;padding-block:4px;font-size:12px;line-height:18px}.collection-page .collection-heading button,.collection-page .collection-toolbar button,.collection-page .asset-toolbar button{gap:4px;padding-inline:8px}.collection-page .collection-heading button svg,.collection-page .collection-toolbar button svg,.collection-page .asset-toolbar button svg{width:14px;height:14px}.collection-page .asset-page-actions,.collection-page .collection-heading .template-actions,.collection-page .asset-tools{gap:6px}.collection-page .asset-search>svg{width:14px;height:14px;top:50%;left:8px;transform:translateY(-50%)}.collection-page .asset-search{flex:initial;width:180px}.collection-page .asset-search input{background:var(--card);padding-left:28px}.collection-page .asset-card,.collection-page .template-card,.library-work-card{border:1px solid var(--border);box-shadow:none;border-radius:12px}.collection-page .template-library-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.collection-page .template-card [data-slot=card-content]{gap:13px;padding:18px}.collection-page .template-card h2{font-size:15px;font-weight:600}.collection-page .template-card-heading svg{width:16px;height:16px}.collection-page .template-card-actions{border-top:1px solid var(--border);padding-top:12px}.library-workspace-columns{grid-template-columns:minmax(0,1fr) 280px;align-items:start;gap:24px;display:grid}.library-collection{min-width:0}.library-date-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;display:grid}.library-date-folder{text-align:left;min-width:0;height:58px;color:var(--foreground);background:var(--card);border:1px solid var(--border);cursor:pointer;border-radius:8px;align-items:center;gap:6px;padding:8px;display:flex}.library-date-folder:hover{background:var(--muted);border-color:var(--muted-foreground)}.library-date-folder:focus-visible{outline:2px solid var(--ring);outline-offset:2px}.library-date-folder>svg{width:20px;height:20px;color:var(--muted-foreground);flex-shrink:0}.library-date-folder strong{white-space:nowrap;font-size:11px;font-weight:600;display:block}.library-date-folder small{color:var(--muted-foreground);font-size:11px;display:block}.library-media-grid{grid-template-columns:repeat(var(--library-columns), minmax(0, 1fr));--library-columns:4;gap:12px;display:grid}.library-media-grid[data-layout=large]{--library-columns:3}.library-media-grid[data-layout=small]{--library-columns:5;gap:8px}.library-media-grid[data-layout=list]{--library-columns:1}.library-collection,.image-library{container-type:inline-size}.library-output-switch{border-bottom:1px solid var(--border);flex-wrap:wrap;flex:none;gap:8px;margin-bottom:12px;display:flex}.library-output-switch>button{color:var(--muted-foreground);border-bottom-width:2px;border-radius:6px 6px 0 0}.library-output-switch>button[aria-pressed=true]{color:var(--foreground);border-bottom-color:var(--primary)}.library-workspace,.image-library{--library-toolbar-control-height:28px;--library-toolbar-group-inset:3px}.library-workspace .collection-tools .collection-search input,.image-library .collection-tools .collection-search input{height:calc(var(--library-toolbar-control-height) + 2 * var(--library-toolbar-group-inset));border-radius:var(--radius-md);display:block}.library-view-switch{padding:calc(var(--library-toolbar-group-inset) - 1px);border:1px solid var(--border);border-radius:var(--radius-md);background:var(--card);align-items:center;gap:2px;display:inline-flex}.collection-toolbar .library-view-switch>button{height:var(--library-toolbar-control-height)}.library-media-grid[data-layout=small] .library-work-date,.library-media-grid[data-layout=small] .image-library-copy time,.library-media-grid[data-layout=small] .library-card-action-label{display:none}.library-media-grid[data-layout=small] .library-work-copy{padding:6px 8px 0}.library-media-grid[data-layout=small] .library-work-card [data-slot=card-footer]{padding:4px}.image-library-group+.image-library-group{margin-top:16px}.image-library-date{color:var(--muted-foreground);margin:0 0 8px;font-size:13px;font-weight:600}.image-library-card{border-radius:var(--radius-md);min-width:0;position:relative}.image-library-card:hover{background:var(--muted)}.image-library-card .task-thumb{aspect-ratio:16/9;width:100%;height:auto}.image-library-copy{justify-items:start;padding-inline:4px;display:grid}.image-library-copy>button{max-width:100%;padding-inline:4px}.image-library-copy>button:after{content:"";position:absolute;inset:0}.image-library-copy>button>span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.image-library-copy time{color:var(--muted-foreground);padding-inline:4px;font-size:11px}.image-library-dialog[data-slot=dialog-content]{width:min(960px,100% - 32px);max-width:none;max-height:90dvh;overflow:auto}.image-library-dialog .feed-detail{padding:12px 0 0}@container (width<=720px){.library-media-grid[data-layout=large]{--library-columns:2}.library-media-grid[data-layout=medium]{--library-columns:3}.library-media-grid[data-layout=small]{--library-columns:4}}@container (width<=510px){.library-media-grid[data-layout=large]{--library-columns:1}.library-media-grid[data-layout=medium]{--library-columns:2}.library-media-grid[data-layout=small]{--library-columns:3}.library-media-grid{gap:8px}.library-media-grid[data-layout=medium] .library-card-action-label{display:none}}.library-work-card{gap:0;min-width:0;padding:0;overflow:hidden}.library-work-card [data-slot=card-content]{padding:0}.library-work-card .media-frame{border-radius:0}.library-work-copy{min-width:0;padding:14px 14px 8px}.library-work-card h2{text-overflow:ellipsis;white-space:nowrap;margin:0 0 5px;font-size:14px;overflow:hidden}.library-work-card p{overflow-wrap:anywhere;font-size:11px}.library-work-card [data-slot=card-footer]{background:var(--card);border-top:0;flex-wrap:wrap;justify-content:space-between;gap:4px;padding:4px 10px 12px;display:flex}.library-video-preview{position:relative}.library-selected{background:var(--primary);color:var(--primary-foreground);pointer-events:none;border-radius:5px;padding:3px 6px;font-size:11px;position:absolute;top:8px;left:8px}.library-media-grid[data-layout=list] .library-work-card{grid-template-columns:minmax(0,1fr) auto;align-items:center;display:grid}.library-media-grid[data-layout=list] .library-work-card [data-slot=card-content]{grid-template-columns:140px minmax(0,1fr);align-items:center;display:grid}.library-media-grid[data-layout=list] .library-work-card [data-slot=card-footer]{padding:10px}.library-merge-sidebar{flex-direction:column;gap:16px;min-width:0;display:flex}.library-merge-sidebar [data-slot=scroll-area-content]>[data-slot=card]{border:1px solid var(--border);min-width:0;box-shadow:none;border-radius:12px;gap:12px;padding:14px 0}.library-merge-sidebar [data-slot=card-header],.library-merge-sidebar [data-slot=card-content]{padding-inline:14px}.library-merge-sidebar [data-slot=card-title]{align-items:center;gap:8px;font-size:14px;display:flex}.library-merge-sidebar [data-slot=card-title] svg{width:16px;height:16px}.library-merge-sidebar .muted{margin-top:3px;font-size:11px}.merge-heading{justify-content:space-between;align-items:center;gap:8px;display:flex}.merge-count{color:var(--muted-foreground);white-space:nowrap;font-size:11px}.library-merge-sidebar .merge-list-panel{max-height:none}.library-merge-sidebar .merge-list-scroll{overflow:visible}.library-merge-sidebar [data-slot=empty]{border:1px dashed var(--border);border-radius:8px;gap:5px;padding:16px 6px}.library-merge-sidebar [data-slot=empty-description]{font-size:11px}.library-merge-sidebar [data-slot=empty-title]{font-size:12px}.library-merge-sidebar .clip-list{gap:4px}.library-merge-sidebar .clip-row{border:0;grid-template-columns:minmax(0,1fr) 25px 25px;gap:4px;min-height:38px;padding-block:3px;display:grid}.library-merge-sidebar .clip-row>.clip-drag-handle{grid-template-columns:12px 36px minmax(0,1fr);gap:5px;padding:2px 0}.library-merge-sidebar .clip-drag-handle .clip-thumbnail{aspect-ratio:4/3;flex:none;width:36px}.clip-copy{text-align:left;flex-direction:column;width:100%;min-width:0;display:flex}.clip-copy>span{flex:none;width:100%}.library-merge-sidebar .clip-filename{white-space:nowrap;text-overflow:ellipsis;font-size:12px;overflow:hidden}.clip-duration{color:var(--muted-foreground);font-size:10px}.library-merge-sidebar .clip-row>button:not(.clip-drag-handle){width:25px;height:28px}.library-merge-sidebar .clip-row>button svg{width:14px;height:14px}.library-merge-sidebar .merge-settings{gap:10px}.merge-sort-hint{color:var(--muted-foreground);margin:-6px 0 0;font-size:10px}.merge-output-settings{border-top:1px solid var(--border);flex-direction:column;gap:10px;padding-top:12px;display:flex}.library-merge-sidebar .merge-title-field{flex-direction:row;align-items:center;gap:8px}.merge-title-field>span{white-space:nowrap}.merge-title-field input{min-width:0}.merge-output-pair{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:8px;display:grid}.library-merge-sidebar .merge-settings label{min-width:0;color:var(--muted-foreground);gap:4px;font-size:11px;font-weight:400}.library-merge-sidebar .merge-settings input,.library-merge-sidebar .merge-settings [data-slot=select-trigger]{height:30px;min-height:30px;color:var(--foreground);border-radius:6px;padding:4px 8px;font-size:12px}.library-merge-sidebar .merge-settings>button{height:34px;font-size:12px}.library-merge-sidebar .merge-player{gap:8px;min-width:0;font-size:12px}.merge-preview-toggle{border-top:1px solid var(--border);text-align:left;cursor:pointer;background:0 0;justify-content:space-between;align-items:center;gap:8px;width:100%;padding:9px 0 0;font-size:11px;font-weight:400;display:flex}.merge-preview-toggle>span{align-items:center;gap:5px;min-width:0;display:flex}.merge-preview-toggle svg,.merge-upload-success svg{flex-shrink:0;width:14px;height:14px}.merge-preview-name{color:var(--muted-foreground);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.merge-upload-success{color:var(--muted-foreground);align-items:center;gap:5px;font-size:11px;display:flex}.library-merge-sidebar .merge-player video{max-width:100%}.collection-empty{text-align:center;color:var(--muted-foreground);padding:48px 12px}.collection-load-more{margin-top:24px}@media (width>=801px){:is(.app-main:has(>.library-workspace),.app-main:has(>.library-video-pane:not([hidden])>.library-workspace)){flex-direction:column;height:calc(100dvh - 64px);padding-bottom:16px;display:flex;overflow:hidden}.library-video-pane:not([hidden]){flex:1;min-height:0}.collection-page.library-workspace{flex-direction:column;height:100%;min-height:0;padding-bottom:0;display:flex}.library-workspace>.collection-heading,.library-workspace>.collection-toolbar{flex-shrink:0}.library-workspace-columns{flex:1;grid-template-rows:minmax(0,1fr);align-items:stretch;min-height:0}.library-collection,.library-merge-sidebar{min-height:0}.library-merge-scroll{flex:1;min-height:0}.library-workspace-columns [data-slot=scroll-area-viewport]{overscroll-behavior-y:contain}.library-collection>[data-slot=scroll-area-viewport]>[data-slot=scroll-area-content],.library-merge-scroll>[data-slot=scroll-area-viewport]>[data-slot=scroll-area-content]{padding-right:12px}}.library-collection>[data-slot=scroll-area-viewport]:focus-visible{outline:2px solid var(--ring);outline-offset:-2px}@media (width>=1280px){.library-date-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}@media (width<=1100px){.library-workspace-columns{grid-template-columns:minmax(0,1fr) 260px;gap:16px}.library-date-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (width<=800px){.library-collection,.library-merge-scroll,.library-workspace-columns [data-slot=scroll-area-viewport]{height:auto;overflow:visible}.library-workspace-columns [data-slot=scroll-area-scrollbar]{display:none}.library-workspace-columns{grid-template-columns:1fr}.library-date-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.collection-page .template-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=600px){.collection-page,.collection-page.assets-page,.collection-page.templates-page{padding:16px 4px 28px}.collection-page .collection-heading{align-items:flex-start;gap:10px;margin-bottom:14px}.collection-page .collection-heading h1{font-size:20px}.collection-title{gap:8px}.collection-count{font-size:11px}.collection-tools{width:100%}.collection-search{flex:1;width:auto}.collection-page .asset-search{flex:1;width:auto;min-width:0}.library-date-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.library-date-folder{height:64px}.library-date-folder>svg{width:17px;height:17px}.collection-page .template-library-grid{grid-template-columns:1fr}.library-media-grid[data-layout=list] .library-work-card{display:block}.library-media-grid[data-layout=list] .library-work-card [data-slot=card-content]{grid-template-columns:100px minmax(0,1fr)}.collection-page .template-filters .collection-search{flex:1 0 100%}}@media (pointer:coarse){.library-merge-sidebar .clip-row{grid-template-columns:minmax(0,1fr) 36px 36px}.library-merge-sidebar .clip-row>button:not(.clip-drag-handle){width:36px;min-height:44px}.library-merge-sidebar .clip-drag-handle,.merge-preview-toggle,.library-merge-sidebar .merge-settings>button{min-height:44px}}@media (width<=420px){.library-date-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
