.cv{direction:rtl;max-width:1220px;margin:18px auto 40px;color:#edf3ff;font:14px/1.65 system-ui,Tahoma,Arial,sans-serif}.cv *{box-sizing:border-box}.cv-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:16px 0 19px}.cv-head h1{color:#f0bc5c;font-size:23px;margin:0}.cv-head p{color:#aebdd5;margin:4px 0}.cv-beta{white-space:nowrap;background:#223650;border:1px solid #4a607e;border-radius:30px;padding:5px 12px;color:#d1ddee;font-size:12px}.cv-card{background:#192640;border:1px solid #354d6e;border-radius:14px;padding:17px;margin-bottom:14px;min-width:0}.cv-drop{border:2px dashed #7798be;background:linear-gradient(135deg,#16253f,#1f3554);min-height:170px;display:flex;flex-direction:column;gap:4px;align-items:center;justify-content:center;cursor:pointer;text-align:center;transition:.15s}.cv-drop:hover,.cv-drop.drag{border-color:#f0b65e;background:#263b5a}.cv-drop:focus-visible{outline:3px solid #d8ac59;outline-offset:3px}.cv-cloud{font-size:42px;color:#f0bd62;line-height:1.1}.cv-drop strong{font-size:17px}.cv-drop span:not(.cv-cloud){color:#c3d0e4}.cv-drop small{color:#abbdd7}.cv-files{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:14px}.cv-file{position:relative;background:#17243c;border:1px solid #405777;padding:8px;border-radius:10px;display:flex;gap:9px;align-items:center;min-width:0}.cv-file img{width:51px;height:54px;object-fit:cover;border-radius:5px;background:#293852}.cv-file span{font-size:11px;min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cv-file button{border:0;background:#572c3b;color:#ffe2e6;border-radius:5px;cursor:pointer;min-width:24px}.cv h2{font-size:16px;color:#f3c574;margin:0 0 12px}.cv h3{font-size:14px;color:#f3c574;margin:15px 0 9px;border-top:1px solid #354762;padding-top:12px}.cv-options{display:flex;flex-wrap:wrap;gap:8px}.cv button{font:inherit}.cv-type,.cv-secondary{background:#101d33;color:#dce8fc;border:1px solid #50698c;border-radius:9px;padding:9px 13px;cursor:pointer}.cv-type.active{background:#294365;border-color:#f2bd64;color:#f9cf8d}.cv-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,0.85fr);gap:14px;align-items:start}.cv-preview-box{position:sticky;top:12px}.cv-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.cv-section-title span{font-size:11px;color:#aebbd1}.cv-stage{min-height:260px;display:grid;place-items:center;padding:14px;background:#0b1629;border-radius:10px;overflow:hidden;touch-action:pan-y}.cv-stage canvas{display:block;width:auto;max-width:100%;max-height:66vh;object-fit:contain;cursor:crosshair;touch-action:none;border-radius:4px}.cv-tools section{padding:0 0 2px}.cv-tools label{font-size:12px;color:#d9e3f5;display:block;min-width:0}.cv-tools input:not([type=checkbox]),.cv-tools select,.cv-tools textarea{width:100%;min-width:0;background:#101a30;color:#fff;border:1px solid #536d90;border-radius:8px;padding:8px;margin-top:5px;min-height:37px;font:inherit}.cv-tools textarea{resize:vertical}.cv-tool-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.cv-tools input[type=range]{padding:0;accent-color:#e9b354;min-height:24px}.cv-tools input[type=color]{padding:3px;height:37px;cursor:pointer}.cv-checkbox{margin-top:12px}.cv-checkbox input,.cv-check-grid input{accent-color:#e9b354;vertical-align:middle}.cv-control-row{margin-bottom:10px}.cv-check-grid{display:flex;gap:15px;flex-wrap:wrap;margin:12px 0}.cv-hint{font-size:12px;color:#abc0de;margin:12px 0 0}.cv-actions{display:flex;gap:8px;margin-top:20px}.cv-actions button{flex:1;cursor:pointer;padding:12px;border-radius:10px;font-weight:750}.cv-primary{background:#e7b45e;color:#17243c;border:0}.cv-primary:disabled{opacity:.55;cursor:not-allowed}.cv-result{margin-top:14px;padding:14px;border:1px solid #518776;background:#183e37;border-radius:10px}.cv-result a{color:#f5d78c;font-weight:750;overflow-wrap:anywhere}.cv-privacy p{color:#c5d2e4;font-size:12px;line-height:1.9;margin:5px 0}.cv-privacy h2{font-size:14px}.cv-file:focus-within{border-color:#f5c671}@media(max-width:840px){.cv-layout{grid-template-columns:1fr}.cv-preview-box{position:relative;top:auto}.cv-files{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:490px){.cv{font-size:13px}.cv-head{display:block}.cv-head h1{font-size:19px}.cv-beta{display:inline-block;margin-top:8px}.cv-files{grid-template-columns:repeat(2,minmax(0,1fr))}.cv-card{padding:12px}.cv-tool-grid{gap:9px}.cv-layout{gap:8px}.cv-stage{min-height:200px;padding:5px}.cv-options{display:grid;grid-template-columns:1fr}.cv-file img{width:38px;height:40px}.cv-actions{flex-direction:column}}

.cv-consent{display:flex!important;align-items:flex-start;gap:8px;border:1px solid #516b84;border-radius:9px;padding:10px;margin-top:14px;line-height:1.7}.cv-consent input{flex:0 0 auto;margin-top:5px}.cv-consent:focus-within{border-color:#ecc475}

/* V1.1: output fit and font selectors */
.cv-fit-control{display:block;margin:14px 0 6px;color:#f4c476!important;font-weight:650}.cv-fit-control select{margin-top:6px}.cv-fit-control:focus-within{color:#ffda90!important}.cv-tools label:has(#cv-font){font-size:13px}.cv-preview-box canvas{image-rendering:auto}

/* Converter V1.2: file family aware document operations */
.cv-docs{max-width:1100px;margin:auto auto 16px}.cv-docs h3{border-top:0;margin-top:12px}.cv-doc-file-list{display:grid;gap:8px;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));margin:12px 0}.cv-doc-entry{background:#102039;border:1px solid #476186;border-radius:9px;padding:10px;overflow-wrap:anywhere}.cv-doc-opts{background:#12223d;border:1px solid #405a7b;border-radius:10px;padding:14px;margin:15px 0}.cv-doc-opts label{display:block;color:#e6e9f4;font-size:13px}.cv-doc-opts input,.cv-doc-opts select{display:block;width:100%;max-width:330px;background:#0f1b30;border:1px solid #50688b;color:#fff;font:inherit;border-radius:8px;padding:9px;margin-top:6px}.cv-docs .cv-type{min-width:140px}.cv-docs .cv-type:disabled{opacity:.48;cursor:not-allowed}.cv-docs .cv-options{gap:10px}.cv-docs .cv-section-title button{font-size:12px}.cv-docs .cv-primary{padding:12px 26px;border-radius:10px;cursor:pointer}.cv-docs .cv-primary:disabled{opacity:.5;cursor:wait}

/* Converter V1.3: legible PDF text settings on narrow phones */
@media(max-width:580px){.cv-docs #cv-doc-text .cv-tool-grid{grid-template-columns:1fr}.cv-docs #cv-doc-text .cv-tool-grid input,.cv-docs #cv-doc-text .cv-tool-grid select{max-width:100%}}
