#wav102 *{box-sizing:border-box}
.w102-modal{width:min(740px,calc(100vw - 28px))!important}
.w102-body{padding:22px 24px 24px!important}
.w102-format{display:flex;align-items:center;justify-content:center;height:42px;margin-bottom:12px;border-radius:10px;background:linear-gradient(135deg,#6659ef,#339cf3);color:#fff;font-weight:850}
.w102-creditbar{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:10px}
.w102-creditbar>div{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border:1px solid #e2e7ef;border-radius:10px;background:#f8faff}
.w102-creditbar span{font-size:10px;color:#778399}.w102-creditbar strong{font-size:11px;color:#4b58d8}

.w102-drop{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:180px!important;padding:24px!important;margin:0!important;border:1.5px dashed #b8c7e3!important;border-radius:15px!important;background:#fbfcff!important;text-align:center!important;cursor:pointer!important;overflow:hidden!important}
.w102-drop.drag,.w102-drop:hover{border-color:#6170eb!important;background:#f6f7ff!important}
.w102-upload-icon{display:flex!important;align-items:center!important;justify-content:center!important;width:54px!important;height:54px!important;margin:0 0 12px!important;border-radius:15px!important;background:linear-gradient(135deg,#6659ef,#339cf3)!important;color:#fff!important;font-size:26px!important;line-height:1!important}
.w102-drop strong{display:block!important;margin:0!important;color:#202b3d!important;font-size:15px!important}
.w102-drop small{display:block!important;margin-top:6px!important;color:#7d899d!important;font-size:11px!important}

.w102-file-row{grid-template-columns:44px minmax(0,1fr) 30px;align-items:center;gap:10px;margin-top:12px;padding:9px 10px;border:1px solid #e2e7ef;border-radius:11px;background:#fff}
.w102-file-row[hidden]{display:none!important}
.w102-file-icon{display:flex;align-items:center;justify-content:center;width:40px;height:36px;border-radius:9px;background:#efedff;color:#6257e5;font-size:8px;font-weight:900}
.w102-file-row strong,.w102-file-row small{display:block}.w102-file-row small{margin-top:2px;color:#8490a3}
.w102-file-row button{border:0;background:transparent;color:#0f172a;font-size:19px;cursor:pointer}

.w102-options{grid-template-columns:repeat(3,1fr);gap:10px;margin-top:12px;padding:12px;border:1px solid #e2e7ef;border-radius:11px;background:#fbfcfe}
.w102-options[hidden]{display:none!important}
.w102-options label>span{display:block;margin-bottom:5px;font-size:9px;color:#66748a}
.w102-options select{width:100%;height:39px;padding:0 9px;border:1px solid #dce2eb;border-radius:8px;background:#fff;color:#111827}

.w102-password[hidden],.w102-status[hidden],.w102-error[hidden],.w102-ready[hidden]{display:none!important}
.fhpdf-progress i#w102-bar{display:block;height:100%;width:0;border-radius:999px;background:linear-gradient(90deg,#6659ef,#339cf3);transition:width .25s}

.w102-error{margin-top:12px;padding:9px 11px;border-radius:9px;background:#fff1f1;color:#aa2a20}
.w102-ready{align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding:12px;border:1px solid #d7e5dc;border-radius:10px;background:#f3fbf6}
.w102-ready small{display:block;margin-top:2px;color:#68786d}
.w102-ready button{padding:9px 15px;border:0;border-radius:9px;background:#39a66f;color:#fff;font-weight:850;cursor:pointer}

/* Remove the bold custom duplicate toggle from older WAV layers. */
#wav102 .fhw101-toggle,
#wav102 .w101toggle,
#wav102 .fhw100-toggle,
#wav102 .fhw95-credit-toggle{display:none!important}

/* Dark mode */
html[data-theme="dark"] .w102-drop,html.dark .w102-drop{background:#0f172a!important;border-color:#475569!important}
html[data-theme="dark"] .w102-drop strong,html.dark .w102-drop strong{color:#e5e7eb!important}
html[data-theme="dark"] .w102-creditbar>div,html.dark .w102-creditbar>div,
html[data-theme="dark"] .w102-options,html.dark .w102-options{background:#111827!important;border-color:#334155!important}
html[data-theme="dark"] .w102-file-row,html.dark .w102-file-row{background:#111827!important;border-color:#334155!important}
html[data-theme="dark"] .w102-options select,html.dark .w102-options select{background:#0f172a!important;color:#e5e7eb!important;border-color:#475569!important}

/* =========================================================
   v104 — WAV to MP3 primary button = PDF Tools primary blue
   ========================================================= */
#wav102 .fhpdf-actions #w102-run,
#wav102 #w102-run.fhpdf-btn.primary,
#wav102 button#w102-run {
    background:linear-gradient(135deg,#6659ef 0%,#339cf3 100%) !important;
    background-color:#5364eb !important;
    color:#ffffff !important;
    border:0 !important;
    box-shadow:0 6px 15px rgba(66,91,220,.20) !important;
}

#wav102 .fhpdf-actions #w102-run:hover,
#wav102 #w102-run.fhpdf-btn.primary:hover {
    background:linear-gradient(135deg,#5650e4 0%,#268ee8 100%) !important;
    color:#ffffff !important;
}

#wav102 .fhpdf-actions #w102-run:disabled {
    opacity:.55 !important;
    cursor:not-allowed !important;
}

/* v105 - WAV to MP3 PDF Tools primary button */
#wav102 #w102-run,
#wav102 .fhpdf-actions #w102-run,
#wav102 button#w102-run.fhpdf-btn.primary {
    background:linear-gradient(135deg,#6659ef 0%,#339cf3 100%) !important;
    background-color:#5364eb !important;
    color:#fff !important;
    border:0 !important;
    box-shadow:0 6px 15px rgba(66,91,220,.20) !important;
}

#wav102 #w102-run:hover {
    background:linear-gradient(135deg,#5650e4 0%,#268ee8 100%) !important;
    color:#fff !important;
}
