/* Dedicated conversion operation UI - v32 */
.mw-body[hidden],.mw-tool-workflow[hidden]{display:none!important}
.mw-tool-workflow{background:#f7fafd;min-height:520px;padding:26px 0 65px}
.mw-back{border:0;background:transparent;color:#5186c6;cursor:pointer;padding:9px 0;margin-bottom:12px;font-weight:850;font-size:13px}
.mw-tool-card{background:#fff;border:1px solid #dfe8f4;border-radius:25px;box-shadow:0 16px 55px #30507711;overflow:hidden}
.mw-workflow-header{padding:26px 30px;background:linear-gradient(112deg,#f5faff,#f2faff);display:flex;justify-content:space-between;gap:20px;align-items:center;border-bottom:1px solid #e4ecf6}
.mw-workflow-header span#mw-tool-operation-badge{display:inline-block;font:900 10px system-ui;color:#4e8edc;letter-spacing:.14em;margin-bottom:7px}
.mw-workflow-header h2{font-size:clamp(27px,3vw,38px);line-height:1.1;letter-spacing:-.05em;margin:0;color:#162436;font-weight:900}
.mw-workflow-header p{font:13px/1.6 system-ui;color:#636f7e;max-width:600px;margin:9px 0 0}
.mw-workflow-header .mw-workflow-step{font-size:11px;font-weight:800;color:#687e99;background:white;border-radius:99px;padding:10px 15px;letter-spacing:0;white-space:nowrap}
.mw-flow-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:30px;padding:30px}
.mw-upload-area{display:flex;min-height:250px;cursor:pointer;position:relative;align-items:center;justify-content:center;flex-direction:column;gap:12px;text-align:center;border:2px dashed #aacefa;background:linear-gradient(145deg,#fafcff,#f3faff);border-radius:20px;padding:25px 17px;transition:background .2s,border-color .2s}
.mw-upload-area:hover,.mw-upload-area.dragover,.mw-upload-area:focus-within{background:#eaf3ff;border-color:#5a99e7}
.mw-upload-icon{height:56px;width:56px;border-radius:17px;background:linear-gradient(125deg,#498cdf,#61d8da);color:#fff;font-size:34px;display:grid;place-items:center;box-shadow:0 10px 28px #4b8ee035}
.mw-upload-area strong{color:#1a2d45;font-size:18px;max-width:100%;overflow-wrap:anywhere;letter-spacing:-.03em}
.mw-upload-area>span:not(.mw-upload-icon):not(.mw-upload-button){font-size:12px;color:#6a7787;line-height:1.5}
.mw-upload-button{background:#fff;border:1px solid #b4d3fa;color:#4781c7;padding:11px 24px;border-radius:12px;font-size:13px;font-weight:850;box-shadow:0 5px 15px #336aad0d}
.mw-upload-area input[type=file]{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;bottom:8px;left:8px}
.mw-format-field{margin:18px 0;display:flex;flex-direction:column;gap:9px;font-weight:850;color:#3d5470;font-size:12px}
.mw-format-field[hidden]{display:none}
.mw-format-field select{padding:14px;border:1px solid #d4e2f2;border-radius:12px;background:#fff;color:#23354a;font:700 13px system-ui}
.mw-tool-message{color:#657589;font-size:12px;line-height:1.5;margin:17px 0 14px}
.mw-tool-message[data-error=true]{color:#a23839}
.mw-action-primary{width:100%;padding:16px;border:0;border-radius:13px;background:linear-gradient(105deg,#357fd9,#5292e1,#62e1e3);color:#fff;font:850 14px system-ui;cursor:pointer;box-shadow:0 10px 26px #4686d536}
.mw-action-primary:disabled{opacity:.5}
.mw-result{display:flex;align-items:center;gap:13px;flex-wrap:wrap;background:#f0fff8;border:1px solid #b3e8d5;border-radius:14px;margin-top:17px;padding:14px}
.mw-result[hidden]{display:none}
.mw-result-check{display:grid;place-items:center;border-radius:50%;height:32px;width:32px;background:#ccf4de;color:#147454;font-weight:900}
.mw-result>div:nth-child(2){flex:1;min-width:135px}.mw-result strong{display:block;overflow-wrap:anywhere;font-size:13px;color:#245e49}.mw-result small{display:block;color:#678c7a;font-size:11px;margin-top:3px}
.mw-result-actions{display:flex;gap:8px;flex-wrap:wrap}.mw-result-actions button{background:white;border:1px solid #b7ddcd;border-radius:10px;padding:10px 12px;color:#315947;font-weight:800;cursor:pointer}
.mw-flow-help{border:1px solid #e8eef6;background:linear-gradient(160deg,#f7fbff,#f5f8ff);padding:23px;border-radius:18px;align-self:start}.mw-flow-help-icon{display:grid;place-items:center;background:#e2efff;border-radius:12px;height:44px;width:44px;font-size:28px;color:#4889d8}.mw-flow-help h3{font-size:19px;line-height:1.2;margin:18px 0 8px;color:#203651}.mw-flow-help p,.mw-flow-help li{font:12px/1.7 system-ui;color:#677484}.mw-flow-help ul{padding-left:18px}
/* Existing engine used for advanced PDF operations: only the selected pane and action visible */
.prep-overlay.prep-tool-focused .prep-tabs{display:none!important}
.prep-overlay.prep-tool-focused .prep-pane[hidden]{display:none!important}
.prep-overlay.prep-tool-focused #prep-pdf-action{pointer-events:none;background:#e9f0f9;color:#57677b}
.prep-overlay.prep-tool-focused #prep-pdf-action option:not(:checked){display:none}
/* Styled file pickers in the fallback editor and PDF annotation studio */
.prep-overlay input[type=file],.annot-overlay input[type=file]{max-width:100%;min-height:44px;padding:12px;border-radius:14px;background:linear-gradient(110deg,#f8fbff,#f4f9ff);border:2px dashed #b6d2f5;color:#455a74;font:600 12px system-ui;cursor:pointer}
.prep-overlay input[type=file]::file-selector-button,.annot-overlay input[type=file]::file-selector-button{border:0;border-radius:9px;background:#4a8fe3;color:white;padding:10px 14px;font:850 12px system-ui;cursor:pointer;margin-right:12px}
@media(max-width:820px){.mw-flow-layout{grid-template-columns:1fr;gap:17px;padding:18px}.mw-flow-help{display:none}.mw-workflow-header{padding:19px}.mw-workflow-header .mw-workflow-step{display:none}}
@media(max-width:520px){.mw-tool-workflow{padding:16px 0 30px}.mw-tool-card{border-radius:17px}.mw-upload-area{min-height:218px;padding:18px 12px}.mw-upload-area strong{font-size:15px}}
