.ds-hidden{display:none!important}.ds-main{min-width:0;flex:1;padding:28px clamp(14px,3vw,38px) 55px;box-sizing:border-box;color:#153047}.ds-main *{box-sizing:border-box}.ds-heading{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-bottom:16px}.ds-heading h1{font-size:clamp(25px,3vw,35px);margin:0;color:#102b38;font-weight:800}.ds-heading p{margin:3px 0 0;color:#526577;font-size:14px}.ds-heading-mark{background:#e5f8f3;color:#087c6d;padding:15px;border-radius:18px;font-size:25px}.ds-privacy{margin-left:auto;padding:9px 12px;color:#087b69;border:1px solid #b9e9db;border-radius:30px;background:#f1fcf8;font-size:12px;font-weight:700}.ds-workflow{display:flex;flex-wrap:wrap;gap:9px;margin:16px 0 21px}.ds-workflow span{font-size:12px;padding:7px 10px;background:#f0f6f7;border:1px solid #dce9eb;border-radius:99px;color:#536774}.ds-workflow b{background:#087c71;color:#fff;border-radius:50%;width:19px;height:19px;display:inline-grid;place-items:center;margin-right:5px}.ds-columns{display:grid;grid-template-columns:minmax(310px,390px) minmax(0,1fr);gap:18px;align-items:start;max-width:1330px}.ds-panel{background:#fff;border:1px solid #d9e7e9;box-shadow:0 10px 32px rgba(21,68,82,.045);border-radius:20px;padding:20px;min-width:0}.ds-panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.ds-panel-head h2{font-size:16px;color:#123b47;margin:0;font-weight:800}.ds-panel-head h2 i{color:#02867b;margin-right:5px}.ds-panel-head span,.ds-panel-head small{font-size:11px;color:#697f8d;font-weight:500}.ds-drop{min-height:175px;border:2px dashed #b5d9d6;background:#f3faf9;border-radius:16px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:9px;text-align:center;padding:16px;cursor:pointer;transition:.15s}.ds-drop.dragging,.ds-drop:focus-visible{border-color:#007f75;background:#e4f7f3;outline:none}.ds-drop>i{font-size:24px;color:#0b8d83}.ds-drop strong{font-size:14px}.ds-drop small{font-size:11px;color:#607482}.ds-btn{border:1px solid #bfd8db;border-radius:11px;background:white;color:#164253;padding:10px 12px;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;font-weight:750;font-size:13px;cursor:pointer;line-height:1.25}.ds-btn:hover:not(:disabled){filter:brightness(.97);border-color:#05897c}.ds-btn:disabled{opacity:.42;cursor:not-allowed}.ds-btn-primary{background:#008a7a;color:white;border-color:#008a7a}.ds-btn-dark{background:#17374c;color:#fff;border-color:#17374c}.ds-btn-quiet{background:#fff}.ds-btn-ghost{background:#f8fbfc}.ds-btn-wide{width:100%;margin:5px 0 13px}.ds-row-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.ds-row-actions .ds-btn{flex:1}.ds-divider{height:1px;background:#e4eef0;margin:20px 0}.ds-field{margin:12px 0}.ds-field label,.ds-slider label{display:flex;align-items:center;justify-content:space-between;color:#36576a;font-size:12px;font-weight:750;margin-bottom:7px}.ds-field label small{font-weight:500}.ds-field select,.ds-field input{width:100%;min-height:42px;border:1px solid #cddde3;border-radius:9px;padding:9px 12px;background:#fff;font:inherit;font-size:13px;color:#1a3644}.ds-slider{margin:13px 0}.ds-slider input{width:100%;accent-color:#008a7a}.ds-checkbox{display:flex;gap:8px;align-items:center;margin-top:12px;color:#426173;font-size:12px}.ds-checkbox input{accent-color:#008a7a}.ds-presets{display:flex;flex-wrap:wrap;gap:6px}.ds-presets button{font-size:11px;border:1px solid #cee2e4;background:#f4faf9;border-radius:9px;padding:7px 9px;cursor:pointer;color:#175e5b}.ds-tip{font-size:11px;color:#647e8b;line-height:1.55;margin:11px 0}.ds-outputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ds-outputs .ds-btn:last-child{grid-column:1/-1}.ds-preview-panel{min-height:510px}.ds-empty{border:1px dashed #d1e1e6;border-radius:17px;min-height:320px;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#6d8290;gap:12px;text-align:center;padding:24px}.ds-empty i{font-size:50px;color:#9dbfc0}.ds-empty strong{font-size:16px;color:#406271}.ds-empty span{font-size:12px}.ds-preview-wrap{background:#edf4f5;border-radius:14px;min-height:260px;padding:20px;display:flex;justify-content:center;align-items:center;overflow:auto}.ds-preview-wrap canvas{display:block;width:auto;height:auto;max-width:100%;max-height:65vh;background:#fff;box-shadow:0 5px 25px #1a364435}.ds-status{font-size:12px;min-height:20px;color:#197466;margin:12px 0 8px}.ds-status.error{color:#ba3344}.ds-pages-head{border-top:1px solid #e5eff1;margin-top:17px;padding-top:16px}.ds-icon-btn{width:34px;height:34px;border:1px solid #cbdfe0;color:#008475;background:#edf8f5;border-radius:9px;cursor:pointer}.ds-thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(115px,1fr));gap:10px}.ds-thumb{background:#f8fbfc;border:2px solid transparent;border-radius:12px;padding:7px;min-width:0;cursor:pointer}.ds-thumb.active{border-color:#008a7a;background:#e9f7f4}.ds-thumb img{width:100%;height:99px;object-fit:contain;background:white;border-radius:5px}.ds-thumb p{margin:5px 0;font-size:11px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.ds-thumb-menu{display:flex;justify-content:space-between;gap:3px}.ds-thumb-menu button{border:1px solid #d5e1e5;border-radius:6px;background:white;cursor:pointer;font-size:11px;padding:4px 5px;color:#25505c}.ds-thumb-menu button:disabled{opacity:.3}.ds-thumb-menu .remove{color:#b23845}.ds-main button:focus-visible,.ds-main select:focus-visible,.ds-main input:focus-visible{outline:2px solid #00a98f;outline-offset:2px}@media(max-width:940px){.ds-columns{grid-template-columns:1fr}.ds-preview-panel{min-height:0}.ds-privacy{margin-left:0}}@media(max-width:600px){.ds-main{padding:18px 12px 38px}.ds-panel{padding:14px;border-radius:16px}.ds-workflow{gap:5px}.ds-workflow span{font-size:10px}.ds-outputs{grid-template-columns:1fr}.ds-outputs .ds-btn:last-child{grid-column:auto}.ds-row-actions .ds-btn{min-width:105px}.ds-thumbs{grid-template-columns:repeat(3,minmax(0,1fr))}.ds-thumb img{height:75px}.ds-heading-mark{padding:12px}}

/* Touch- and mouse-friendly document crop; scoped to Document Scanner only */
.ds-crop-stage{position:relative;display:block;flex:none;line-height:0;max-width:100%;}
.ds-crop-stage canvas{max-width:none;max-height:none;box-shadow:0 5px 25px #1a364435;}
.ds-crop-overlay{position:absolute;inset:0;z-index:2;touch-action:none;cursor:crosshair;background:rgba(14,42,52,.16);border:2px solid rgba(0,138,122,.7);border-radius:2px;}
.ds-crop-selection{position:absolute;border:2px solid #00a48d;outline:1px solid white;background:rgba(0,164,141,.12);box-shadow:0 0 0 9999px rgba(10,23,34,.35);pointer-events:none;}
.ds-crop-actions{margin:10px 0;padding:12px;background:#edf9f6;border:1px solid #b9e6de;border-radius:12px;}
.ds-crop-actions>span{font-size:12px;line-height:1.4;color:#20595b;display:block;}
.ds-crop-actions .ds-btn{min-width:120px;}

/* Precise four-corner perspective scan: thick high-contrast outline and handles */
.ds-crop-overlay{background:rgba(4,20,32,.31);border:0;border-radius:0;cursor:default;}
.ds-crop-svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;}
.ds-corner{position:absolute;z-index:4;transform:translate(-50%,-50%);width:38px;height:38px;border-radius:50%;border:6px solid #044d48;background:#ffffff;box-shadow:0 0 0 4px #00f5d4,0 3px 12px #0009;touch-action:none;cursor:grab;}
.ds-corner:active{cursor:grabbing;background:#baffed;}
.ds-corner:focus-visible{outline:4px solid #ffb100;outline-offset:5px;}
@media(max-width:600px){.ds-corner{width:46px;height:46px;border-width:7px}}

/* Crop modal and zoom: isolated from website theme and processing controls. */
.ds-preview-tools{display:flex;gap:7px;align-items:center;justify-content:flex-end;flex-wrap:wrap;margin:0 0 12px}.ds-preview-tools .ds-btn{min-height:34px;padding:6px 9px;font-size:12px}.ds-preview-tools span{min-width:52px;text-align:center;font-size:12px;font-weight:750;color:#174e61}
.ds-modal{position:fixed;inset:0;z-index:2147482000;background:rgba(5,17,30,.78);display:flex;align-items:center;justify-content:center;padding:12px;overflow:auto}.ds-modal-box{width:min(1060px,98vw);max-height:calc(100dvh - 20px);background:white;border:2px solid #0b1828;border-radius:18px;box-shadow:0 12px 55px #0007;padding:15px;display:flex;flex-direction:column;gap:10px;min-height:0;color:#182d40}.ds-modal-head{display:flex;gap:12px;justify-content:space-between;align-items:flex-start}.ds-modal-head h2{font-size:20px;margin:0 0 5px}.ds-modal-head p{font-size:12px;color:#607084;margin:0}.ds-modal-close{flex:none;min-width:40px;min-height:40px;border:2px solid #121b2b;border-radius:11px;background:white;color:#101727;font-size:23px;cursor:pointer}.ds-modal-view{background:#090f22;border-radius:12px;min-height:180px;flex:1;overflow:auto;display:flex;align-items:center;justify-content:safe center;padding:22px;max-height:calc(100dvh - 240px)}.ds-modal-view .ds-crop-stage{margin:auto}.ds-modal-view .ds-crop-stage canvas{max-height:none;max-width:none;box-shadow:none}.ds-modal-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:7px}.ds-modal-toolbar .ds-btn{min-height:36px;padding:7px 10px}.ds-modal-foot{border-top:1px solid #dde5ed;padding-top:10px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}.ds-modal-foot>span{font-size:12px;color:#607184}.ds-modal-foot .ds-row-actions{margin:0}.ds-crop-overlay{background:transparent;touch-action:none}.ds-corner{background:#fff;border:5px solid #2a76ff;box-shadow:0 0 0 3px white,0 2px 12px #000a;width:38px;height:38px}.ds-corner:active{background:#aad1ff}.ds-modal .ds-crop-svg polygon{stroke:#1981fa;fill:rgba(36,115,255,.06);stroke-width:7}.ds-modal .ds-crop-svg{filter:drop-shadow(0 0 1px white)}body.ds-crop-open{overflow:hidden}
@media(max-width:600px){.ds-modal{padding:5px}.ds-modal-box{width:100%;padding:10px;max-height:calc(100dvh - 10px);border-radius:12px}.ds-modal-head h2{font-size:16px}.ds-modal-view{padding:18px 15px;max-height:calc(100dvh - 280px)}.ds-modal-toolbar .ds-btn{font-size:11px;min-height:34px}.ds-modal-foot .ds-btn{min-height:36px}.ds-corner{width:46px;height:46px}}
