#fhfav140-modal *{box-sizing:border-box}
#fhfav140-modal .fhfav140-modal{width:min(780px,calc(100vw - 32px))!important}
#fhfav140-modal .fhfav140-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;padding:14px 20px;background:#fafbfe;border-bottom:1px solid #edf0f5}
#fhfav140-modal .fhfav140-tabs button{min-height:38px;border:1px solid #e0e5ee;border-radius:10px;background:#fff;color:#556074;font-weight:800;cursor:pointer}
#fhfav140-modal .fhfav140-tabs button.active{border-color:transparent;background:linear-gradient(135deg,#6659ef,#339cf3);color:#fff}
#fhfav140-modal .fhfav140-operation{display:flex;align-items:center;justify-content:center;gap:12px;min-height:42px;margin-bottom:12px;border-radius:11px;background:linear-gradient(135deg,#6659ef,#339cf3);color:#fff;font-size:12px;font-weight:850}
#fhfav140-modal .fhfav140-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:150px;padding:20px;border:1.5px dashed #b9c6df;border-radius:15px;background:#fbfcff;text-align:center;cursor:pointer}
#fhfav140-modal .fhfav140-drop.drag,#fhfav140-modal .fhfav140-drop:hover{border-color:#6975ef;background:#f5f7ff}
#fhfav140-modal .fhfav140-drop>span{display:flex;align-items:center;justify-content:center;width:58px;height:58px;margin-bottom:10px;border-radius:15px;background:linear-gradient(135deg,#6659ef,#339cf3);color:#fff;font-size:22px;font-weight:900}
#fhfav140-modal .fhfav140-drop strong{font-size:14px;color:#253247}
#fhfav140-modal .fhfav140-drop small{margin-top:5px;color:#8290a5;font-size:10px}
#fhfav140-modal .fhfav140-file-row{display:grid;grid-template-columns:44px minmax(0,1fr) 30px;align-items:center;gap:10px;margin-top:10px;padding:9px 10px;border:1px solid #e2e7ef;border-radius:11px;background:#fff}
#fhfav140-modal .fhfav140-file-row>span{display:flex;align-items:center;justify-content:center;width:42px;height:36px;border-radius:9px;background:#eef0ff;color:#5863e8;font-size:8px;font-weight:900}
#fhfav140-modal .fhfav140-file-row small{display:block;margin-top:2px;color:#8490a3;font-size:9px}
#fhfav140-modal .fhfav140-file-row button{border:0;background:transparent;font-size:18px;cursor:pointer}
#fhfav140-modal .fhfav140-preview-wrap{margin-top:10px}
#fhfav140-modal .fhfav140-preview-card{padding:11px;border:1px solid #e2e7ef;border-radius:12px;background:#f8faff}
#fhfav140-modal .fhfav140-preview-card>span{display:block;margin-bottom:9px;color:#667286;font-size:10px;font-weight:800}
#fhfav140-modal .fhfav140-preview-grid{display:flex;align-items:end;gap:18px}
#fhfav140-modal .fhfav140-preview-grid>div{display:flex;flex-direction:column;align-items:center;gap:5px}
#fhfav140-modal .fhfav140-preview-grid img{display:block;object-fit:contain;background-image:linear-gradient(45deg,#eef1f5 25%,transparent 25%),linear-gradient(-45deg,#eef1f5 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#eef1f5 75%),linear-gradient(-45deg,transparent 75%,#eef1f5 75%);background-size:10px 10px;background-position:0 0,0 5px,5px -5px,-5px 0}
#fhfav140-modal #fhfav140-preview-64{width:64px;height:64px}
#fhfav140-modal #fhfav140-preview-32{width:32px;height:32px}
#fhfav140-modal #fhfav140-preview-16{width:16px;height:16px}
#fhfav140-modal .fhfav140-preview-grid small{font-size:8px;color:#8490a3}
#fhfav140-modal .fhfav140-options{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
#fhfav140-modal .fhfav140-options>label{padding:10px 11px;border:1px solid #e2e7ef;border-radius:10px;background:#f8faff}
#fhfav140-modal .fhfav140-options>label>span{display:block;margin-bottom:7px;color:#596579;font-size:10px}
#fhfav140-modal .fhfav140-range-row,#fhfav140-modal .fhfav140-bg-row{display:flex;align-items:center;gap:8px}
#fhfav140-modal .fhfav140-range-row input{flex:1}
#fhfav140-modal .fhfav140-range-row strong{min-width:34px;text-align:right;font-size:10px;color:#5561df}
#fhfav140-modal .fhfav140-bg-row select{height:31px;flex:1;border:1px solid #dce2eb;border-radius:8px;background:#fff;padding:0 8px;color:#435066}
#fhfav140-modal .fhfav140-bg-row input[type=color]{width:34px;height:31px;padding:2px;border:1px solid #dce2eb;border-radius:8px;background:#fff}
#fhfav140-modal .fhfav140-output-note{margin-top:10px;padding:9px 11px;border:1px solid #e2e7ef;border-radius:10px;background:#f8faff;color:#667286;font-size:10px}
#fhfav140-modal .fhfav140-credit{margin-top:10px}
#fhfav140-modal .fhfav140-credit>button{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;width:100%;min-height:42px;padding:0 13px;border:1px solid #e1e6ef;border-radius:10px;background:#f8faff;color:#455268;font-size:11px;font-weight:700;text-align:left;cursor:pointer}
#fhfav140-modal .fhfav140-credit em{justify-self:end;margin-left:auto;padding:4px 8px;border-radius:999px;background:#eeefff;color:#5561df;font-size:9px;font-style:normal;font-weight:850;white-space:nowrap}
#fhfav140-modal #fhfav140-credit-panel{padding:10px 13px;border:1px solid #e1e6ef;border-top:0;border-radius:0 0 10px 10px;background:#fff}
#fhfav140-modal .fhfav140-credit-line{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid #edf0f5}
#fhfav140-modal .fhfav140-credit-line strong,#fhfav140-modal .fhfav140-credit-line small{display:block}
#fhfav140-modal .fhfav140-credit-line small{font-size:9px;color:#8490a3}
#fhfav140-modal .fhfav140-credit-line>span{font-size:10px;color:#5561df;font-weight:800}
#fhfav140-modal .fhfav140-credit-total{display:flex;justify-content:space-between;padding-top:9px;font-size:10px}
#fhfav140-modal .fhpdf-status{margin-top:13px}
#fhfav140-modal .fhpdf-progress{height:8px;overflow:hidden;border-radius:999px;background:#e9edf4}
#fhfav140-modal .fhpdf-progress i{display:block;width:0;height:100%;border-radius:999px;background:linear-gradient(90deg,#6659ef,#339cf3);transition:width .25s}
#fhfav140-modal .fhpdf-download-btn{display:inline-flex;align-items:center;justify-content:center;height:39px;padding:0 16px;border-radius:10px;background:linear-gradient(135deg,#2a9363,#47b878);color:#fff!important;text-decoration:none;font-weight:850}
#fhfav140-modal .fhpdf-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}
#fhfav140-modal .fhpdf-actions button{height:39px;padding:0 15px;border-radius:10px;font-weight:850}
#fhfav140-modal .fhpdf-primary{border:0!important;background:linear-gradient(135deg,#6659ef,#339cf3)!important;color:#fff!important}
#fhfav140-modal .fhpdf-secondary{border:1px solid #dce2eb;background:#fff;color:#596477}
#fhfav140-modal [hidden]{display:none!important}
@media(max-width:700px){#fhfav140-modal .fhfav140-tabs{grid-template-columns:1fr 1fr}#fhfav140-modal .fhfav140-options{grid-template-columns:1fr}}
