.resources-page{gap:var(--space-section);flex-direction:column;min-width:0;display:flex}.resources-page.page-content{padding:var(--panel-padding,24px);background:var(--card);border-radius:var(--radius-panel);border:0}.resource-heading,.resource-actions,.resource-filters,.resource-pagination,.asset-actions{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.resource-heading{justify-content:space-between}.resource-heading h1{margin:0}.resource-heading h2,.asset-card h2,.resource-empty h2{font-size:var(--font-size-card-title,1rem);font-weight:600;line-height:1.5}.resource-filters{gap:var(--space-control);background:0 0;padding:0}.resource-filters>input{flex:1;min-width:180px}.resources-page select,.resource-dialog select,.resource-dialog textarea{background:var(--composer);color:var(--foreground);border:1px solid var(--border);min-height:40px;font:inherit;border-radius:8px;max-width:100%;padding:8px 12px}.resources-page select:focus-visible,.resource-dialog :focus-visible{outline:2px solid var(--ring);outline-offset:2px}.resource-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,200px),1fr));gap:20px;display:grid}.asset-card{background:var(--card);border-radius:var(--radius-panel);min-width:0;padding:12px;position:relative}.asset-card h2{font-size:var(--font-size-body);overflow-wrap:anywhere;margin:14px 0 4px}.asset-cover{aspect-ratio:16/9;background:var(--secondary);width:100%;color:var(--muted-foreground);cursor:pointer;border-radius:10px;flex-direction:column;justify-content:center;align-items:center;gap:12px;display:flex}.asset-cover:disabled{cursor:default}.resource-muted,.resource-pagination{color:var(--muted-foreground);overflow-wrap:anywhere;font-size:.8125rem}.asset-actions{gap:4px;margin-top:16px}.asset-actions>[data-slot=button]{font-size:var(--font-size-secondary)}.asset-more{margin-left:auto}.asset-caption{align-items:center;gap:6px;min-width:0;margin-top:4px;display:flex}.asset-card .asset-caption h2{flex:1;min-width:0;margin:0}.asset-caption .asset-more{flex-shrink:0;width:24px;height:24px;min-height:24px;padding:0}.library-materials .resource-grid{row-gap:8px}.library-materials .asset-card{padding-bottom:8px}.library-materials .asset-card>.resource-muted{margin:0;line-height:18px}@media (pointer:coarse){.asset-caption .asset-more{width:32px;height:32px}}.asset-card:not(.project-card) h2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.asset-cover:focus-visible{outline:2px solid var(--ring);outline-offset:3px}.resource-empty{text-align:center;background:var(--card);border-radius:var(--radius-panel);justify-items:center;gap:12px;min-height:240px;padding:48px 24px;display:grid}.resource-pagination{font-variant-numeric:tabular-nums;justify-content:flex-end;margin-top:12px}.resource-pagination>span:first-child{margin-right:auto}.resource-error{color:var(--destructive);overflow-wrap:anywhere}.resource-notice{background:var(--secondary);border-radius:10px;padding:12px 16px}.resource-dialog{background:var(--card);width:min(680px,100vw - 36px);max-height:calc(100dvh - 48px);color:var(--foreground);border:0;border-radius:16px;margin:auto;padding:28px;position:fixed;inset:0;overflow:auto}.resource-dialog::backdrop{background:#0000008c}.resource-dialog>*,.resource-dialog form{margin-bottom:16px}.resource-dialog form,.resource-dialog label{flex-direction:column;gap:10px;display:flex}.resource-dialog form{gap:20px}.resource-dialog .resource-heading{margin-bottom:24px}.resource-dialog .resource-heading h2{font-size:var(--font-size-section)}.resource-filters>[data-slot=input]{background:var(--card);height:40px}.resource-filters>[data-slot=button]{min-height:40px}.resource-dialog input[type=file]{width:100%;font:inherit}.resource-upload-zone{border:1px dashed var(--input);border-radius:var(--radius-panel);background:var(--background);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:12px;min-height:220px;padding:24px 16px;display:flex}.resource-upload-zone>svg{color:var(--muted-foreground)}.resource-upload-zone:focus-visible,.resource-upload-zone.is-dragging{outline:2px solid var(--ring);outline-offset:2px;background:var(--accent)}.resource-upload-zone[aria-disabled=true]{opacity:.6}.resource-upload-file{overflow-wrap:anywhere;max-width:100%}.resource-upload-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;margin-bottom:0;display:flex}.resource-preview{object-fit:contain;max-width:100%;max-height:60vh;margin:auto}.asset-lightbox{color:#fff;background:0 0;border:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;position:fixed;inset:0;overflow:hidden}.asset-lightbox[open]{grid-template-rows:auto minmax(0,1fr) auto;display:grid}.asset-lightbox::backdrop{background:#000000b8}.asset-lightbox-header{justify-content:space-between;align-items:center;gap:24px;padding:24px 40px 16px;display:flex}.asset-lightbox-header>span{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:13px;overflow:hidden}.asset-lightbox-header>button{background:#ffffff29;border-radius:50%;width:44px;height:44px}.asset-lightbox-stage{overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#fff6 transparent;min-width:0;min-height:0;overflow:auto}.asset-lightbox-canvas{position:relative}.asset-lightbox-stage[data-draggable=true] img{cursor:grab;-webkit-user-select:none;user-select:none}.asset-lightbox-stage[data-dragging=true],.asset-lightbox-stage[data-dragging=true] img{cursor:grabbing;-webkit-user-select:none;user-select:none}.asset-lightbox-canvas>img,.asset-lightbox-canvas>video{object-fit:contain;max-width:none;position:absolute;top:50%;left:50%}.asset-lightbox-message{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:12px;height:100%;margin:0;padding:24px;display:flex}.asset-lightbox-footer{padding:20px 16px max(24px, env(safe-area-inset-bottom));flex-direction:column;align-items:center;gap:12px;display:flex}.asset-lightbox-footer>p{overflow-wrap:anywhere;max-width:100%;margin:0;font-size:13px}.asset-lightbox-toolbar{background:#56585c;border-radius:28px;align-items:center;gap:8px;padding:6px 14px;display:flex}.asset-lightbox-toolbar>button{width:40px;height:40px}.asset-lightbox-header>button,.asset-lightbox-toolbar>button{color:inherit}.asset-lightbox-header>button:hover,.asset-lightbox-toolbar>button:hover{background:#ffffff29}.asset-lightbox button:focus-visible{outline-offset:3px;outline:2px solid #fff}@media (width<=600px){.asset-lightbox-header{gap:12px;padding:16px}.asset-lightbox-toolbar{gap:4px;padding:6px 10px}.asset-lightbox-toolbar>button{width:36px;height:40px}}.resource-document{background:#fff;border:0;border-radius:8px;width:100%;height:50vh}.resource-dialog audio{width:100%}.resource-grid.project-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr))}.project-cover{transition:background-color .15s}.project-cover:hover{background:var(--accent)}.project-card .asset-caption>a{flex:1;min-width:0}.project-card h2{font-size:var(--font-size-body);text-overflow:ellipsis;white-space:nowrap;margin:0;overflow:hidden}.project-description{-webkit-line-clamp:2;min-height:3em;color:var(--muted-foreground);font-size:var(--font-size-secondary);overflow-wrap:anywhere;white-space:pre-wrap;-webkit-box-orient:vertical;margin:4px 0 8px;line-height:1.5;display:-webkit-box;overflow:hidden}.project-created{font-variant-numeric:tabular-nums;margin:0}@media (width<=768px){.resource-heading{align-items:flex-start}.resource-actions{gap:8px}.resource-filters>input{flex-basis:100%;min-width:0}.resource-filters select{flex:1;min-width:0}.resource-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,200px),1fr))}.resources-page input,.resources-page select,.resource-dialog input,.resource-dialog textarea,.resource-dialog select{font-size:1rem}.resource-dialog{padding:18px}.resource-pagination{gap:8px}}.library-layout{grid-template-columns:200px minmax(0,1fr);align-items:start;gap:24px;display:grid}.library-directories{border-radius:var(--radius-panel);background:0 0;flex-direction:column;gap:8px;min-width:0;padding:0;display:flex}.library-directories header,.library-folder{align-items:center;gap:2px;display:flex}.library-directories header{justify-content:space-between}.library-directories>button{justify-content:flex-start}.library-folder{border-radius:var(--radius-lg)}.library-folder:hover,.library-folder:focus-within{background:var(--muted)}.library-folder[data-selected=true]{background:var(--secondary);color:var(--secondary-foreground)}.library-folder>[data-slot=button]{background:0 0}.library-folder-name{flex:1;justify-content:flex-start;min-width:0;padding-inline:0}.library-folder-name span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.library-folder>button:not(.library-folder-name),.library-folder-spacer{flex-shrink:0;width:26px}.library-materials{flex-direction:column;gap:20px;min-width:0;display:flex}.library-materials .resource-filters{flex-wrap:wrap;margin-top:0}.resource-kind-filters{background:var(--muted);border-radius:10px;flex-shrink:0;align-items:center;max-width:100%;padding:3px;display:inline-flex}.resource-kind-filters>[data-slot=button]{height:34px;color:var(--muted-foreground);padding:0 10px}.resource-kind-filters>[aria-pressed=true]{background:var(--card);color:var(--foreground);box-shadow:none;border-color:#0000}.resource-library-filters>input{flex:0 240px;width:240px;min-width:160px}@media (width<=767px){.resource-kind-filters{grid-template-columns:repeat(3,minmax(0,1fr));width:100%;display:grid}.resource-library-filters>input{flex:160px;width:auto;min-width:0}.resource-library-filters>select{flex:120px}}.asset-cover{overflow:hidden}.asset-cover img,.asset-cover video{object-fit:cover;width:100%;height:100%}@media (width<=760px){.library-layout{grid-template-columns:1fr;gap:16px}.library-directories{min-height:0;max-height:240px;overflow:auto}}.library-batch{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.library-batch label,.library-select{align-items:center;gap:8px;font-size:13px;display:flex}.library-batch input,.library-select input{width:16px;height:16px;accent-color:var(--primary)}.library-select{z-index:1;background:var(--card);border-radius:6px;padding:5px;position:absolute;top:20px;left:20px}.library-folder>button{flex-shrink:0}.library-folder>button.library-folder-name{flex-shrink:1}.library-directories>input{background:var(--card);height:40px}.library-folder-name{min-height:36px}.library-batch{min-height:36px;font-size:var(--font-size-secondary);color:var(--muted-foreground);gap:8px}.library-batch>[data-slot=button]{font-size:var(--font-size-secondary)}@media (width>=761px){.library-directories{max-height:calc(100dvh - 104px);padding:2px 4px 4px 2px;position:sticky;top:80px;overflow-y:auto}}.library-materials .resource-library-filters{grid-template-columns:minmax(0,1fr) 150px;gap:12px 8px;display:grid}.library-materials .resource-kind-filters{grid-column:1/-1;justify-self:start}.library-materials .resource-library-filters>input,.library-materials .resource-library-filters>select{width:100%;min-width:0}.workspace-main:has(.assets-page .library-layout){flex-direction:column;height:100dvh;display:flex;overflow:hidden}.workspace-main:has(.assets-page .library-layout)>.app-header{flex-shrink:0}.assets-page:has(.library-layout){flex:1;min-height:0;overflow:hidden}.assets-page:has(.library-layout)>.page-heading{flex-shrink:0}.assets-page:has(.library-layout)>[data-slot=tabs]{flex-direction:column;flex:1;min-height:0;display:flex}.assets-page:has(.library-layout) [data-slot=tabs-list]{flex-shrink:0}.assets-page [data-slot=tabs-content]:has(.library-layout){flex-direction:column;flex:1;min-height:0;display:flex}.assets-page [data-slot=tabs-content]>.resources-page:has(.library-layout){flex-direction:column;flex:1;min-height:0;display:flex}.assets-page .library-layout{flex:1;align-items:stretch;min-height:0}.assets-page .library-directories{min-height:0;max-height:none;position:static;overflow:hidden}.assets-page .library-directories>header,.assets-page .library-directories>input,.assets-page .library-directories>button{flex-shrink:0}.library-directory-tree{flex-direction:column;gap:8px;min-height:0;display:flex}.library-directory-tree>.library-folder{flex-shrink:0}.assets-page .library-directory-tree{overscroll-behavior:contain;flex:1;overflow:auto}.assets-page .library-materials{min-height:0}.assets-page .resource-library-filters{flex-shrink:0}.library-results{flex-direction:column;gap:20px;min-width:0;display:flex}.assets-page .library-results{overscroll-behavior:contain;flex:1;min-height:0;padding:4px;overflow:auto}.library-results>*{flex-shrink:0}.assets-page .resource-pagination{margin-top:auto}.library-directory-tree:focus-visible,.library-results:focus-visible{outline:2px solid var(--ring);outline-offset:-2px}@media (width<=760px){.assets-page .library-layout{grid-template-rows:minmax(200px,40%) minmax(0,1fr)}}.resource-dialog>.resource-heading{margin-bottom:24px}@media (width>=1440px){.library-materials .resource-library-filters{grid-template-columns:auto minmax(140px,1fr) 140px}.library-materials .resource-kind-filters{grid-column:auto}}@media (width<=767px){.library-materials .resource-kind-filters{justify-self:stretch;width:100%}.library-materials .resource-library-filters{grid-template-columns:minmax(0,1fr) 120px}}
