.files-panel{border:1px solid #bfd0c2;background:var(--paper,#fffefa);border-radius:14px;padding:16px;margin:20px 0;min-width:0}.files-panel h3{margin:0 0 12px}.files-list,.comment-file-list,.template-list{padding:0;list-style:none;margin:8px 0}.file-row,.template-list>li{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #d5e0d6}.file-row>div:first-child,.template-list>li>div:first-child{min-width:0;flex:1}.file-row a{overflow-wrap:anywhere;color:var(--green,#246b4a);text-decoration:underline}.file-row small,.template-list small{display:block;color:#52645c;margin-top:4px;font-size:11px}.file-row-actions{display:flex;gap:10px;flex-wrap:wrap}.file-upload-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.file-picker{display:flex!important;align-items:center;gap:10px;flex-wrap:wrap;font-size:12px!important;margin:8px 0!important}.file-picker input{width:auto!important;max-width:100%;font-size:12px;margin:0}.file-link summary,.comment-files summary{cursor:pointer;font-size:12px;text-decoration:underline;padding:10px 0}.file-link-fields,.template-form{display:grid;gap:12px}.file-error,.template-error{color:#974e3e;font-size:13px}.file-error:empty,.template-error:empty{display:none}.file-checkbox{display:flex!important;flex-direction:row!important;align-items:flex-start;gap:10px;font-weight:400!important}.file-checkbox input{width:18px!important;height:18px;min-height:18px!important;flex:0 0 18px;margin:2px 0!important}.file-checkbox span{font-size:13px}.template-tools{display:flex;gap:12px;align-items:center;flex-wrap:wrap;border-top:1px solid #d5e0d6;padding-top:16px;margin-top:20px}.template-form input,.template-form select{width:100%;box-sizing:border-box}.template-list>li>div:last-child{display:flex;gap:10px;align-items:center}#templates-dialog{max-width:650px}#file-preview-dialog{max-width:850px}#file-preview-dialog img{display:block;max-width:100%;max-height:70vh;margin:auto;object-fit:contain}.comment-file-list .file-row{font-size:12px}.files-tools[hidden]{display:none!important}@media(max-width:720px){.file-row,.template-list>li{align-items:flex-start;flex-wrap:wrap}.file-row-actions{width:100%;justify-content:flex-end}.file-row-actions button,.template-tools button{min-height:44px}.file-picker{width:100%}.file-picker input{width:100%!important}.template-list>li>div:last-child{width:100%;justify-content:flex-end}.template-form .save-actions{display:flex;flex-wrap:wrap}.template-form .save-actions button{flex:1;min-height:44px}.files-panel{padding:12px}}
