/* Canvix Platform V2: project creation and independent video project cards.
   Strictly namespaced: no editor canvas/timeline styles are changed. */
.cvx-p2-create-menu{position:relative;display:inline-flex;flex:0 0 auto;align-self:center;z-index:110;min-width:0}
.cvx-p2-create-toggle{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:48px;padding:0 16px;border:0;border-radius:13px;background:#32abf2;color:#fff;font:800 13px/1.2 Inter,system-ui,sans-serif;white-space:nowrap;cursor:pointer;box-shadow:0 5px 12px rgba(49,165,239,.10)}
.cvx-p2-create-toggle:hover,.cvx-p2-create-toggle[aria-expanded=true]{background:#188fdf;color:#fff}
.cvx-p2-create-toggle:focus-visible{outline:3px solid #a4d8ff;outline-offset:3px}
.cvx-p2-create-toggle .cvx-p2-chevron{font-size:10px;opacity:.85;margin-left:2px}
.cvx-p2-create-options{position:absolute;right:0;top:calc(100% + 8px);width:265px;max-width:min(265px,calc(100vw - 20px));padding:7px;background:#fff;border:1px solid #dce9f5;border-radius:13px;box-shadow:0 18px 38px rgba(23,56,90,.16);z-index:10050;text-align:left}
.cvx-p2-create-options[hidden]{display:none!important}
.cvx-p2-create-options>a{display:flex;align-items:center;gap:11px;padding:10px;border-radius:9px;color:#15283e!important;text-decoration:none!important}
.cvx-p2-create-options>a:hover,.cvx-p2-create-options>a:focus-visible{background:#eef8ff;outline:none}
.cvx-p2-create-options strong{display:block;font-size:12px;font-weight:850}
.cvx-p2-create-options small{display:block;margin-top:2px;color:#71839b;font-size:10px;line-height:1.35}
.cvx-p2-create-icon{flex:0 0 37px;width:37px;height:37px;display:grid;place-items:center;background:#ebf6ff;color:#188fe4;border-radius:10px;font-size:15px}
.cvx-p2-create-icon.is-video{background:#eeecff;color:#6756d9}
.canvix-template-toolbar,.canvix-dashboard-folder-toolbar,.tl-page-heading{overflow:visible!important}
.canvix-template-toolbar>.cvx-p2-create-menu{margin-left:auto}
.canvix-recent-design-thumb>.cvx-p2-project-badge{position:absolute;top:10px;left:9px;z-index:2;padding:5px 8px;border-radius:8px;background:rgba(16,35,57,.74);color:#fff;font-size:10px;font-weight:800;line-height:1;display:inline-flex;align-items:center;gap:6px;pointer-events:none}
.canvix-recent-design-thumb>.cvx-p2-project-badge.is-video{background:#146bd3}
.cvx-p2-folder-video-count{color:#3187cb;font-size:11px;font-weight:700;white-space:nowrap}
.cvx-p2-video-preview{position:relative;background:#eaf1fc}
.cvx-p2-video-placeholder{width:100%;height:100%;min-height:155px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;background:linear-gradient(145deg,#e9f4ff,#d9eafe 55%,#e9eaff);color:#4782bc;font-size:12px;font-weight:850}
.cvx-p2-video-placeholder i{font-size:29px}
.cvx-p2-video-duration{position:absolute;left:10px;bottom:10px;z-index:4;display:inline-flex;align-items:center;gap:5px;padding:5px 7px;border-radius:7px;background:rgba(15,30,48,.77);color:white;font-size:10px;line-height:1;font-weight:850;pointer-events:none}
.cvx-p2-video-duration i{font-size:8px}
.cvx-p2-video-card .canvix-template-action-menu button.cvx-p2-video-action{width:100%;display:flex;align-items:center;gap:9px;min-height:35px;text-align:left;border:0;background:transparent;color:#405068;font-size:12px;font-weight:650;padding:6px 12px;cursor:pointer}
.cvx-p2-video-card .canvix-template-action-menu button.cvx-p2-video-action:hover{background:#f0f7ff;color:#177de2}
.cvx-p2-video-card .canvix-template-action-menu .is-danger button{color:#c73c53}
.cvx-p2-move-label{display:flex;align-items:center;gap:8px;padding:5px 10px;color:#5d7188;font-size:12px}
.cvx-p2-move-label select{width:100%;min-width:0;min-height:31px;padding:5px;border:1px solid #d8e5f0;border-radius:7px;color:#425873;font-size:11px;background:white}
.cvx-p2-video-card .canvix-template-actions{z-index:10}
.cvx-p2-video-card .cvx-p2-video-action:disabled,.cvx-p2-video-card .cvx-p2-video-move:disabled{opacity:.5;cursor:wait}
@media(max-width:760px){.cvx-p2-create-toggle{min-height:42px;padding:0 12px;font-size:12px}.cvx-p2-create-options{right:0;top:calc(100% + 5px)}.canvix-dashboard-folder-toolbar .cvx-p2-create-menu{order:1}}
/* Standalone 'All videos' view stays inside the existing account shell. */
.cvx-p2-all-videos{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:41px;padding:0 10px;color:#337bbb!important;font-size:12px;font-weight:800;text-decoration:none!important;white-space:nowrap}
.cvx-p2-all-videos:hover{color:#126bb3!important;background:#edf8ff;border-radius:9px}
.cvx-p2-video-list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:17px 0 23px}
.cvx-p2-video-list-search{display:flex;gap:8px;align-items:center;flex:1;min-width:220px}
.cvx-p2-video-list-search input,.cvx-p2-video-list-search select{min-width:0;height:42px;border:1px solid #dbe5f1;border-radius:10px;background:#fff;color:#263c56;padding:0 11px;font-size:12px}
.cvx-p2-video-list-search input{flex:1;max-width:410px}
.cvx-p2-video-list-search select{max-width:180px}
.cvx-p2-video-list-search button{height:42px;padding:0 16px;border:1px solid #b7d8fb;border-radius:10px;background:#f0f8ff;color:#207dc4;font-size:12px;font-weight:800;cursor:pointer}
.cvx-p2-video-list-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.cvx-p2-pagination{display:flex;justify-content:center;align-items:center;gap:18px;margin:26px 0 5px;color:#667c94;font-size:12px;font-weight:800}
.cvx-p2-pagination a{padding:9px 13px;border:1px solid #d7e8f6;border-radius:9px;background:#fff;color:#237fd0;text-decoration:none}
.cvx-p2-legacy-list{margin:34px 0 12px;padding-top:17px;border-top:1px solid #ddeaf7}
.cvx-p2-legacy-list h2{font-size:19px;font-weight:850;color:#18293f}
.cvx-p2-legacy-list p{color:#70849a;font-size:12px;line-height:1.5}
.cvx-p2-legacy-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:15px}
.cvx-p2-legacy-card{padding:13px;border:1px solid #e0e9f3;border-radius:12px;background:#fff;min-width:0}
.cvx-p2-legacy-card strong,.cvx-p2-legacy-card small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cvx-p2-legacy-card strong{font-size:12px;color:#18314b}.cvx-p2-legacy-card small{font-size:10px;color:#8292a3;margin-top:3px}
.cvx-p2-legacy-card>div{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}
.cvx-p2-legacy-card a,.cvx-p2-legacy-card button{padding:7px 9px;border:1px solid #badbfa;background:#f3faff;border-radius:8px;font-size:11px;font-weight:800;color:#267dcc;cursor:pointer;text-decoration:none}
.cvx-p2-legacy-card button:disabled{opacity:.55;cursor:wait}
@media(max-width:1140px){.cvx-p2-video-list-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:780px){.cvx-p2-video-list-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cvx-p2-legacy-grid{grid-template-columns:1fr}.cvx-p2-video-list-search{flex-wrap:wrap}}
@media(max-width:520px){.cvx-p2-video-list-grid{grid-template-columns:1fr}.cvx-p2-video-list-search input{width:100%;flex:auto;max-width:none}.cvx-p2-video-list-toolbar .cvx-p2-create-menu{margin-left:auto}}
.cvx-p2-type-filters{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:3px 0 14px}
.cvx-p2-type-filters button{display:inline-flex;align-items:center;gap:6px;min-height:31px;padding:0 12px;border:1px solid #d8e6f4;border-radius:999px;background:#fff;color:#596c85;font-size:11px;font-weight:800;cursor:pointer}
.cvx-p2-type-filters button[aria-pressed=true]{background:#e9f6ff;border-color:#77c6ff;color:#168ce5}
.cvx-p2-type-filters button:hover{border-color:#9bd3ff}
/* Five dashboard actions require an explicit responsive grid; the original had three. */
.canvix-account-shell .canvix-dashboard-folder-toolbar{
  grid-template-columns:minmax(180px,1fr) minmax(145px,195px) auto auto auto;
  gap:10px;
}
.canvix-account-shell .canvix-dashboard-folder-toolbar .canvix-create-folder-btn{grid-column:auto;justify-self:auto}
@media(max-width:1320px){
 .canvix-account-shell .canvix-dashboard-folder-toolbar{grid-template-columns:minmax(150px,1fr) 165px auto auto}
 .canvix-account-shell .canvix-dashboard-folder-toolbar .canvix-create-folder-btn{grid-column:4;justify-self:end}
}
@media(max-width:900px){
 .canvix-account-shell .canvix-dashboard-folder-toolbar{grid-template-columns:minmax(0,1fr) auto}
 .canvix-account-shell .canvix-dashboard-folder-toolbar .canvix-folder-search-form{grid-column:1/-1}
 .canvix-account-shell .canvix-dashboard-folder-toolbar .canvix-dashboard-sort-wrap{grid-column:1}
 .canvix-account-shell .canvix-dashboard-folder-toolbar .cvx-p2-all-videos{grid-column:2}
 .canvix-account-shell .canvix-dashboard-folder-toolbar .cvx-p2-create-menu{grid-column:1;justify-self:start}
 .canvix-account-shell .canvix-dashboard-folder-toolbar .canvix-create-folder-btn{grid-column:2;justify-self:end}
}
@media(max-width:540px){
 .canvix-account-shell .canvix-dashboard-folder-toolbar{grid-template-columns:minmax(0,1fr)}
 .canvix-account-shell .canvix-dashboard-folder-toolbar .canvix-folder-search-form,
 .canvix-account-shell .canvix-dashboard-folder-toolbar .canvix-dashboard-sort-wrap,
 .canvix-account-shell .canvix-dashboard-folder-toolbar .cvx-p2-all-videos,
 .canvix-account-shell .canvix-dashboard-folder-toolbar .cvx-p2-create-menu,
 .canvix-account-shell .canvix-dashboard-folder-toolbar .canvix-create-folder-btn{grid-column:1;width:100%;justify-self:stretch}
 .canvix-account-shell .canvix-dashboard-folder-toolbar .cvx-p2-create-toggle{width:100%}
 .canvix-account-shell .canvix-template-toolbar .cvx-p2-create-menu,.canvix-account-shell .canvix-template-toolbar .cvx-p2-create-toggle{width:100%}
}

/* Platform V5: archive recovery without changing the existing image dashboard. */
.cvx-p5-archive-toggle{display:inline-flex;align-items:center;justify-content:center;min-height:41px;padding:0 12px;border:1px solid #d7e8f6;border-radius:9px;background:#fff;color:#237fc2!important;font-size:12px;font-weight:800;text-decoration:none!important;white-space:nowrap}
.cvx-p5-archive-toggle:hover{background:#eff8ff;color:#126bb3!important}
.cvx-p5-archived-badge{position:absolute;inset:auto 10px 10px auto;z-index:5;padding:6px 9px;background:rgba(19,37,59,.82);border-radius:8px;color:#fff;font-size:10px;font-weight:850;pointer-events:none}
.cvx-p5-archived-badge i{margin-right:5px}
.cvx-p2-video-card .canvix-template-action-menu button[data-action="restore"]{color:#217d64;font-weight:750}
@media(max-width:520px){.cvx-p2-video-list-toolbar .cvx-p5-archive-toggle{order:1}.cvx-p2-video-list-toolbar .cvx-p2-video-list-search{flex-basis:100%}}

/* Unified Canvix Video: project-engine badge. */
.cvx-p2-video-preview{position:relative}
.cvx-p2-video-engine-badge{position:absolute;top:10px;right:10px;z-index:4;display:inline-flex;align-items:center;min-height:26px;padding:0 9px;border-radius:999px;background:rgba(15,23,42,.78);color:#fff;font-size:10px;font-weight:800;letter-spacing:.02em;backdrop-filter:blur(4px);box-shadow:0 4px 12px rgba(15,23,42,.14)}
