.cpro-dialog{box-sizing:border-box;width:min(1120px,calc(100vw - 48px));max-width:none;max-height:calc(100dvh - 48px);padding:30px;border:1px solid #292a2a;border-radius:18px;background:#0c0d0d;color:#eee;font:14px/1.5 var(--font,var(--fuente,sans-serif));box-shadow:0 24px 100px #0009;overflow:auto;overscroll-behavior:contain}
.cpro-dialog::backdrop{background:#000b;backdrop-filter:blur(5px)}.cpro-dialog *{box-sizing:border-box}.cpro-dialog button,.cpro-dialog input,.cpro-dialog select{font:inherit;color:inherit}.cpro-dialog button{cursor:pointer;min-height:44px;border:1px solid #333;background:#181919;border-radius:8px;padding:9px 14px}.cpro-dialog button:disabled{opacity:.5;cursor:wait}.cpro-dialog :is(button,input,select):focus-visible{outline:2px solid var(--lima,#c8f34a);outline-offset:3px}.cpro-dialog input,.cpro-dialog select{min-height:44px;border:1px solid #333;background:#111212;border-radius:8px;padding:10px 13px}.cpro-dialog input{width:100%;min-width:0}.cpro-dialog .cpro-primary{background:var(--lima,#c8f34a);border-color:transparent;color:#10120b;font-weight:600}.cpro-heading{display:flex;gap:24px;justify-content:space-between;align-items:flex-start;margin-bottom:28px}.cpro-heading p{font-size:10px;letter-spacing:.13em;color:#aaa;margin:0 0 8px}.cpro-heading h1{font-size:clamp(25px,4vw,36px);line-height:1.15;letter-spacing:-.025em;margin:0 0 10px;overflow-wrap:anywhere}.cpro-heading span{color:#a7aaa8;font-size:13px}.cpro-heading>button{font-size:17px;min-width:44px;padding:8px}.cpro-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:24px}.cpro-search{flex:1;min-width:180px}.cpro-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.cpro-dialog .cpro-card{padding:0;overflow:hidden;display:flex;flex-direction:column;align-items:flex-start;text-align:left;background:#111212;border-color:#252626}.cpro-card:hover{border-color:#626560}.cpro-folder{width:100%;height:112px;display:grid;place-items:center;background:linear-gradient(125deg,#222522,#151715);color:#8e988a}.cpro-folder svg{width:43px;height:43px}.cpro-card>b{padding:14px 14px 0;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:550}.cpro-card>small{padding:2px 14px 16px;color:#969b96}.cpro-add{padding:0 14px 14px;color:var(--lima,#c8f34a);font-size:12px}.cpro-empty{display:grid;justify-items:center;text-align:center;gap:12px;min-height:260px;align-content:center;color:#9ca39c;padding:24px}.cpro-empty>svg{width:46px;height:46px;color:#8d9b87}.cpro-empty h2{margin:0;color:#dedfdd;font-size:20px;font-weight:500}.cpro-empty p{margin:0;max-width:430px;font-size:13px}.cpro-status,.cpro-note{font-size:12px;color:#aeb9a7}.cpro-error{padding:14px 16px;border:1px solid #6a4939;border-radius:10px;margin-bottom:16px;color:#e8bfa8}.cpro-error p{margin:0 0 10px}.cpro-form{display:flex;align-items:end;gap:10px;padding:16px;background:#151716;border:1px solid #333;border-radius:10px;margin-bottom:18px}.cpro-form label{flex:1;display:grid;gap:6px;font-size:12px}.cpro-files{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.cpro-file{overflow:hidden;border:1px solid #292a29;border-radius:10px;background:#121313}.cpro-dialog .cpro-preview{display:grid;place-items:center;width:100%;aspect-ratio:4/3;padding:0;border:0;border-radius:0;background:#1b1e1b}.cpro-preview img{width:100%;height:100%;object-fit:cover}.cpro-file-icon{font-size:30px;color:#9ca797}.cpro-file>div{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:8px}.cpro-file>div>span{font-size:11px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.cpro-file>div>button{flex:none;font-size:11px;padding:5px 9px;border:0;background:transparent;color:#b4b9b1}.cpro-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.cpro-dialog [hidden]{display:none!important}
@media(max-width:900px){.cpro-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:24px}.cpro-grid,.cpro-files{grid-template-columns:repeat(3,minmax(0,1fr))}.cpro-dialog input,.cpro-dialog select{font-size:16px}}
@media(max-width:600px){.cpro-dialog{width:100%;height:100dvh;max-height:100dvh;margin:0;border-radius:0;border:0;padding:max(22px,env(safe-area-inset-top)) 16px max(20px,env(safe-area-inset-bottom))}.cpro-heading{gap:12px;margin-bottom:24px}.cpro-heading span{font-size:12px}.cpro-toolbar{gap:8px}.cpro-search{flex-basis:100%}.cpro-toolbar label:has(select){flex:1}.cpro-toolbar select{width:100%}.cpro-grid,.cpro-files{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.cpro-folder{height:100px}.cpro-form{flex-wrap:wrap;padding:12px}.cpro-form label{flex-basis:100%}.cpro-form button{flex:1}.cpro-file>div{flex-wrap:wrap}.cpro-file>div>span{width:100%}.cpro-file>div>button{margin-left:auto}.cpro-empty{padding:24px 8px;min-height:230px}}
.cpro-dialog button>svg{width:18px;height:18px;flex:none;vertical-align:middle}.cpro-toolbar button{display:inline-flex;align-items:center;justify-content:center;gap:7px}.cpro-file-icon svg{width:38px;height:38px}.cpro-form>p{flex:1;font-size:13px;margin:0;color:#d5c1b4}
.cpro-heading h1,.cpro-empty h2{font-family:inherit;font-weight:500}.cpro-updated{display:block;margin-top:3px;color:#737b73;font-size:10px}
/* Proyecto activo (24-sep-2026): pastilla «Guardar en» encima del editor y su menú. */
.cpro-destino{position:relative;display:flex;align-items:center;margin:0 0 8px;z-index:30}.cpro-destino[hidden]{display:none!important}
.cpro-destino-btn{display:inline-flex;align-items:center;gap:8px;max-width:min(100%,360px);min-height:36px;padding:5px 12px 5px 10px;border:1px solid #2c2f2c;border-radius:999px;background:#111312;color:#d9ddd6;font:inherit;font-size:12.5px;cursor:pointer;transition:border-color .15s,background .15s}
.cpro-destino-btn:hover{border-color:#4a5043;background:#161916}.cpro-destino-btn:focus-visible{outline:2px solid var(--verde-cocuyo,#AFF33E);outline-offset:2px}
.cpro-destino-btn>svg{width:16px;height:16px;flex:none;color:#8f978a}.cpro-destino-btn>svg:last-child{width:14px;height:14px}
.cpro-destino.con-proyecto .cpro-destino-btn{border-color:#3d5a1c;background:#131a0e}.cpro-destino.con-proyecto .cpro-destino-btn>svg:first-child{color:var(--verde-cocuyo,#AFF33E)}
.cpro-destino-txt{display:flex;align-items:baseline;gap:6px;min-width:0}.cpro-destino-txt small{color:#8f978a;font-size:11.5px;white-space:nowrap}.cpro-destino-txt b{font-weight:600;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.cpro-destello .cpro-destino-btn{animation:cpro-destello .9s ease}@keyframes cpro-destello{0%{box-shadow:0 0 0 0 #aff33e88}100%{box-shadow:0 0 0 12px #aff33e00}}
.cpro-menu{position:absolute;left:0;bottom:calc(100% + 8px);width:min(340px,calc(100vw - 32px));padding:8px;border:1px solid #2c2f2c;border-radius:14px;background:#0f1110;box-shadow:0 18px 60px #000a;color:#e7eae4;font-size:13px}
.cpro-menu[hidden]{display:none}.cpro-menu-title{margin:4px 8px 8px;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:#8f978a}
.cpro-menu-list{max-height:min(300px,45vh);overflow:auto;overscroll-behavior:contain}
.cpro-menu button{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:7px 10px;border:0;border-radius:10px;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}
.cpro-menu button:hover,.cpro-menu button:focus-visible{background:#1a1d1a;outline:none}.cpro-menu button.on{background:#141c0e}
.cpro-menu button>svg{width:17px;height:17px;flex:none;color:#8f978a}.cpro-menu button.on>svg{color:var(--verde-cocuyo,#AFF33E)}
.cpro-menu button>span{flex:1;min-width:0;display:flex;flex-direction:column}.cpro-menu button b{font-weight:550;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.cpro-menu button small{color:#8f978a;font-size:11.5px}
.cpro-menu-foot{display:flex;gap:4px;margin-top:6px;padding-top:6px;border-top:1px solid #232623}.cpro-menu-foot button{flex:1;justify-content:center;font-size:12.5px}
/* Vista de un proyecto: activo, filtros, más archivos y videos con primer fotograma. */
.cpro-activo-tag{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 12px;border-radius:8px;background:#141c0e;border:1px solid #3d5a1c;color:var(--verde-cocuyo,#AFF33E);font-size:13px;font-weight:600}.cpro-activo-tag svg{width:16px;height:16px}
.cpro-folder{position:relative}.cpro-activo-badge{position:absolute;top:10px;left:10px;padding:3px 9px;border-radius:999px;background:var(--verde-cocuyo,#AFF33E);color:#10120b;font-size:11px;font-weight:700}
.cpro-dialog .cpro-card-activo{border-color:#4d6b25}
.cpro-filtros{display:flex;gap:6px;margin:-8px 0 18px}.cpro-dialog .cpro-filtros button{min-height:36px;padding:6px 14px;border-radius:999px;font-size:12.5px}.cpro-dialog .cpro-filtros button[aria-pressed="true"]{background:#e9ece6;color:#10120b;border-color:transparent;font-weight:600}
.cpro-more{display:flex;justify-content:center;margin-top:18px}
.cpro-dialog .cpro-preview{position:relative;overflow:hidden}.cpro-preview video{width:100%;height:100%;object-fit:cover;pointer-events:none}
.cpro-play{position:absolute;right:8px;bottom:8px;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#000a;color:#fff}.cpro-play svg{width:15px;height:15px}
.cpro-origen{position:absolute;left:8px;top:8px;padding:2px 8px;border-radius:999px;background:#000b;color:#dfe3dc;font-size:10.5px}
.cpro-empty .cpro-primary{display:inline-flex;align-items:center;gap:7px}
@media(max-width:600px){.cpro-destino{margin:0 0 6px}.cpro-destino-btn{min-height:40px;font-size:13px}.cpro-filtros{margin:-4px 0 14px}}
.cpro-menu.cpro-menu-abajo{bottom:auto;top:calc(100% + 8px)}
