.app-shell .ocr-region{z-index:5;cursor:text;touch-action:manipulation;background:#ffc83c12;border:1px dashed #d98a0099;border-radius:2px;min-width:12px;min-height:10px;margin:0;padding:0;position:absolute}.app-shell .ocr-region:hover:not(:disabled){background:#ffc83c2b;border-color:#c77700}.app-shell .ocr-region.active{z-index:7;background:#ffc83c3d;border:1.5px solid #c77700}.app-shell .ocr-region.edited{background:#1a9b5a14;border:1px solid #1a9b5acc}.app-shell .ocr-region.edited:hover:not(:disabled),.app-shell .ocr-region.edited.active{background:#1a9b5a2e;border-color:#12804a}.app-shell .ocr-region:disabled{cursor:not-allowed;opacity:.5}.app-shell .ocr-region:focus-visible{outline-offset:1px;outline:2px solid #1c64d8}.app-shell .ocr-suspect{pointer-events:none;border-bottom:2px dotted #d93025;position:absolute}.ocr-edit-panel{z-index:95;box-sizing:border-box;color:#20232a;width:380px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);font:13px/1.55 var(--arabic,Arial),system-ui,sans-serif;direction:rtl;background:#fff;border:1px solid #dcdfe6;border-radius:12px;flex-direction:column;gap:9px;padding:12px 14px;display:flex;position:fixed;overflow:auto;box-shadow:0 12px 40px #12243b33}.ocr-edit-panel header{align-items:center;gap:8px;display:flex}.ocr-edit-panel header strong{color:#5b6270;flex:1;font-size:12px;font-weight:600}.ocr-badge{color:#8a5200;background:#fff1d4;border:1px solid #f0cf8c;border-radius:999px;align-items:center;gap:4px;padding:1px 8px;font-size:11px;font-weight:700;display:inline-flex}.ocr-close{color:#6b7280;border-radius:8px;justify-content:center;align-items:center;width:34px;height:34px;margin-inline-start:auto;display:inline-flex}.ocr-close:hover{background:#f1f2f5}.ocr-field,.ocr-size{color:#6b7280;flex-direction:column;gap:4px;font-size:11px;display:flex}.ocr-field input,.ocr-size input{box-sizing:border-box;color:#20232a;background:#fff;border:1px solid #cfd4dd;border-radius:8px;width:100%;min-height:42px;padding:8px 10px;font-size:16px}.ocr-field input:focus,.ocr-size input:focus{outline-offset:0;border-color:#1c64d8;outline:2px solid #1c64d8}.ocr-size input[aria-invalid=true]{border-color:#d93025}.ocr-size{flex-direction:row;align-items:center;gap:8px}.ocr-size input{width:96px;min-height:36px;font-size:14px}.ocr-compare{grid-template-columns:1fr;gap:6px;min-height:46px;display:grid}.ocr-compare figure{background:#f7f8fa;border:1px solid #e3e6ec;border-radius:8px;margin:0;overflow:hidden}.ocr-compare figcaption{color:#6b7280;background:#eef0f4;padding:2px 8px;font-size:10px}.ocr-compare img{object-fit:contain;background:#fff;width:100%;height:auto;max-height:110px;display:block}.ocr-wait{color:#6b7280;margin:0;font-size:12px}.ocr-error{color:#a6323b;background:#fff0ed;border-radius:8px;margin:0;padding:8px 10px;font-size:12px}.ocr-meta,.ocr-note{color:#6b7280;margin:0;font-size:11px}.ocr-note{background:#f7f8fa;border-radius:8px;padding:7px 9px}.ocr-edit-panel footer{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.ocr-apply,.ocr-cancel{border-radius:9px;justify-content:center;align-items:center;gap:6px;min-height:44px;padding:0 16px;font-size:14px;font-weight:600;display:inline-flex}.ocr-apply{color:#fff;background:#20232a}.ocr-apply:disabled{color:#fff;cursor:not-allowed;background:#c9ced8}.ocr-cancel{color:#3a404c;background:#f1f2f5}.ocr-restore{color:#8a2f00;background:#fff;border:1px solid #e3b79b;border-radius:9px;align-items:center;gap:6px;min-height:44px;padding:0 14px;font-size:13px;font-weight:600;display:inline-flex}.ocr-restore:hover{background:#fff4ec}.ocr-why{color:#8a5200;font-size:11px}@media (max-width:1023px){.ocr-edit-panel{max-width:none;bottom:calc(var(--phone-dock,56px) + env(safe-area-inset-bottom,0px) + 8px);max-height:62dvh;width:auto!important;top:auto!important;left:8px!important;right:8px!important}}@media (prefers-reduced-motion:no-preference){.ocr-edit-panel{animation:.14s ease-out ocr-rise}}@keyframes ocr-rise{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}.ocr-extend{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.ocr-extend button{color:#2b303b;background:#fff;border:1px solid #cfd4de;border-radius:9px;align-items:center;gap:4px;min-height:44px;padding:0 12px;font-size:13px;font-weight:600;display:inline-flex}.ocr-extend button:disabled{opacity:.45;cursor:not-allowed}.ocr-lines{color:#5b6270;font-size:12px}.ocr-scope{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.ocr-scope button{color:#2b303b;background:#fff;border:1px solid #cfd4de;border-radius:9px;min-height:44px;padding:0 12px;font-size:13px;font-weight:600}.ocr-scope button:disabled{opacity:.45;cursor:not-allowed}.ocr-sentence{color:#5a3d00;background:#fff4d6;border:1px solid #f0cf86;border-radius:8px;margin:0;padding:6px 9px;font-size:12.5px;line-height:1.5}.ocr-field textarea:focus{outline-offset:0;border-color:#1c64d8;outline:2px solid #1c64d8}.ocr-field textarea{box-sizing:border-box;resize:vertical;width:100%;min-height:88px;font:inherit;border:1px solid #cfd4de;border-radius:9px;padding:8px 10px;font-size:16px;line-height:1.5}.app-shell .ocr-paragraph{z-index:4;pointer-events:none;box-sizing:border-box;background:#ffc83c0d;border:1px dotted #d98a0066;border-radius:4px;margin:-3px;padding:3px;position:absolute}.app-shell .ocr-paragraph[data-kind=heading]{background:#7d5aa50f;border-color:#7d5aa588}.app-shell .ocr-paragraph[data-kind=list]{background:#2a8a5a0d;border-color:#2a8a5a77}.app-shell .ocr-paragraph.hot{background:#ffc83c26;border:1.5px solid #c77700}.app-shell .ocr-paragraph.active{background:#ffc83c33;border:1.5px solid #c77700}@media (prefers-reduced-motion:no-preference){.app-shell .ocr-paragraph{transition:background-color .12s,border-color .12s}}.ocr-edit-panel{animation:.35s linear ocr-pass-through}@keyframes ocr-pass-through{0%,99%{pointer-events:none}to{pointer-events:auto}}
.rich-editor{z-index:7;box-sizing:border-box;background:var(--rich-backdrop,#fffffff7) center/100% 100% no-repeat;outline-offset:1px;white-space:pre-wrap;overflow-wrap:break-word;cursor:text;caret-color:#7c4ddc;-webkit-user-select:text;user-select:text;touch-action:manipulation;border-radius:2px;outline:2px solid #7c4ddc;margin:0;padding:0;position:absolute;overflow:visible}.rich-editor:focus{outline-color:#5b34b8;box-shadow:0 0 0 4px #7c4ddc29}.rich-panel{z-index:60;box-sizing:border-box;color:#1d2433;background:#fff;border:1px solid #d9d2f0;border-radius:12px;flex-direction:column;gap:6px;max-width:calc(100vw - 16px);padding:8px;font-size:13px;display:flex;position:fixed;box-shadow:0 12px 34px #24165438}.rich-panel.sheet{width:auto;max-width:none;max-height:58vh;padding:10px 10px calc(10px + env(safe-area-inset-bottom));border-radius:16px 16px 0 0;inset:auto 0 0;overflow:auto;box-shadow:0 -8px 28px #24165440}.rich-row{flex-wrap:wrap;align-items:center;gap:4px;display:flex}.rich-panel button,.rich-panel select,.rich-color{color:#2a2352;min-width:34px;min-height:34px;font:inherit;cursor:pointer;background:#faf9ff;border:1px solid #e1dcf3;border-radius:8px;justify-content:center;align-items:center;padding:0 6px;display:inline-flex}.rich-panel button:hover:not(:disabled){background:#efeaff}.rich-panel button[aria-pressed=true]{color:#fff;background:#7c4ddc;border-color:#7c4ddc}.rich-panel button:disabled,.rich-panel select:disabled{opacity:.45;cursor:not-allowed}.rich-panel button:focus-visible,.rich-panel select:focus-visible,.rich-color:focus-within{outline-offset:1px;outline:2px solid #5b34b8}.rich-text-button{font-variant-numeric:tabular-nums;min-width:48px}.rich-color{width:38px;padding:3px}.rich-color input{cursor:pointer;background:0 0;border:0;width:100%;height:100%;min-height:26px;padding:0}.rich-message{color:#5b5675;margin:2px;font-size:12px}.rich-message.error{color:#b42318}.rich-preview{background:#f6f4fc;border:1px solid #e1dcf3;border-radius:8px;max-height:170px;margin:0;padding:4px;overflow:auto}.rich-preview img{background:#fff;border-radius:4px;max-width:100%;height:auto;display:block}.rich-preview figcaption{color:#5b5675;padding:3px 2px 0;font-size:11px}.rich-help{color:#6a6585;margin:0 2px;font-size:11px;line-height:1.5}.rich-actions{gap:6px;display:flex}.rich-actions button{flex:1;gap:6px;min-height:38px;font-weight:600}.rich-apply{color:#fff!important;background:#7c4ddc!important;border-color:#7c4ddc!important}.rich-apply:hover:not(:disabled){background:#6a3fc4!important}@media (pointer:coarse){.rich-panel button,.rich-panel select,.rich-color{min-width:44px;min-height:44px}.rich-actions button{min-height:48px}}@media (max-width:1023px){.rich-help{display:none}}
.text-move-grip{z-index:40;color:#6d28d9;cursor:move;touch-action:none;background:#fff;border:1px solid #6d28d9;border-radius:50%;place-items:center;width:28px;height:28px;margin:-30px 0 0 -30px;padding:0;display:grid;position:absolute;box-shadow:0 1px 4px #0f172a40}.text-move-grip:hover:not(:disabled){background:#f5f3ff}.text-move-grip:focus-visible{outline-offset:2px;outline:2px solid #6d28d9}.text-move-grip:disabled{opacity:.45;cursor:not-allowed}.text-move-ghost{z-index:5;pointer-events:none;background:#6d28d914;border:1.5px dashed #6d28d9;border-radius:2px;position:absolute}@media (pointer:coarse){.text-move-grip{width:44px;height:44px;margin:-46px 0 0 -46px}}.text-resize-handle{z-index:40;cursor:ew-resize;touch-action:none;background:#fff;border:1.5px solid #6d28d9;border-radius:3px;width:14px;height:14px;margin:-7px 0 0 -7px;padding:0;position:absolute;box-shadow:0 1px 3px #0f172a40}.text-resize-handle:hover:not(:disabled){background:#f5f3ff}.text-resize-handle:focus-visible{outline-offset:2px;outline:2px solid #6d28d9}.text-resize-handle:disabled{opacity:.45;cursor:not-allowed}@media (pointer:coarse){.text-resize-handle{width:28px;height:28px;margin:-14px 0 0 -14px}}
.find-replace{direction:rtl;margin-top:6px}.find-replace-toggle{min-height:36px;font:inherit;cursor:pointer;background:#fff;border:1px solid #dce4ef;border-radius:5px;align-items:center;gap:6px;padding:0 10px;display:inline-flex}.find-replace-toggle[aria-expanded=true]{border-color:var(--accent);color:var(--accent)}.find-replace-panel{background:#fafbfd;border:1px solid #e1e7ef;border-radius:6px;flex-direction:column;gap:6px;max-height:38vh;margin-top:6px;padding:8px;display:flex;overflow:auto}.find-replace-panel input[type=text],.find-replace-panel input:not([type]){width:100%;min-height:36px;font:inherit;border:1px solid #dce4ef;border-radius:5px;padding:5px 8px}.find-replace-actions{flex-wrap:wrap;gap:6px;display:flex}.find-replace-actions .full-button{flex:120px;min-height:36px}.find-replace-apply:not(:disabled){background:var(--accent);color:#fff;border-color:var(--accent)}.find-replace-error{color:#b42318}.find-replace-summary{margin:4px 0;font-weight:600}.find-replace-results ul{flex-direction:column;gap:3px;max-height:220px;margin:6px 0 0;padding:0;list-style:none;display:flex;overflow:auto}.find-replace-hit{background:#fff;border:1px solid #e1e7ef;border-radius:4px;flex-wrap:wrap;align-items:center;gap:6px;padding:6px 8px;display:flex}.find-replace-hit label{cursor:pointer;flex:160px;align-items:center;gap:6px;min-width:0;display:flex}.find-replace-hit input[type=checkbox]{width:16px;height:16px;accent-color:var(--accent);flex-shrink:0}.find-replace-context{text-overflow:ellipsis;white-space:nowrap;flex:160px;min-width:0;overflow:hidden}.find-replace-context mark{background:var(--accent-pale);color:inherit;border-radius:2px;padding:0 1px}.find-replace-hit.skip,.find-replace-hit.failed{opacity:.75}.find-replace-hit small{color:#6f7c8e;flex-basis:100%;font-size:10px;line-height:1.4}.find-replace-page{min-height:28px;font:inherit;cursor:pointer;background:#fff;border:1px solid #dce4ef;border-radius:4px;padding:0 8px;font-size:11px}@media (max-width:720px){.find-replace-panel{max-height:34vh}.find-replace-toggle,.find-replace-actions .full-button,.find-replace-panel input:not([type=checkbox]){min-height:44px;font-size:16px}.find-replace-hit{min-height:44px}.find-replace-hit input[type=checkbox]{width:22px;height:22px}.find-replace-page{min-width:44px;min-height:44px}.find-replace-results ul{max-height:260px}}
.header-footer{direction:rtl;margin-top:6px}.header-footer-toggle{min-height:36px;font:inherit;cursor:pointer;background:#fff;border:1px solid #dce4ef;border-radius:5px;align-items:center;gap:6px;padding:0 10px;display:inline-flex}.header-footer-toggle[aria-expanded=true]{border-color:var(--accent);color:var(--accent)}.header-footer-panel{background:#fafbfd;border:1px solid #e1e7ef;border-radius:6px;flex-direction:column;gap:8px;margin-top:6px;padding:8px;display:flex}.header-footer-panel input:not([type=checkbox]):not([type=color]),.header-footer-panel select{width:100%;min-height:36px;font:inherit;background:#fff;border:1px solid #dce4ef;border-radius:5px;padding:5px 8px}.header-footer-panel input[type=color]{background:#fff;border:1px solid #dce4ef;border-radius:5px;width:100%;min-height:36px;padding:2px}.header-footer-presets,.header-footer-tokens{flex-wrap:wrap;gap:4px;display:flex}.header-footer-presets button,.header-footer-tokens button,.header-footer-existing button,.header-footer-results li button{min-height:32px;font:inherit;cursor:pointer;background:#fff;border:1px solid #dce4ef;border-radius:4px;padding:0 9px;font-size:12px}.header-footer-presets button:hover:not(:disabled),.header-footer-tokens button:hover:not(:disabled){border-color:var(--accent);color:var(--accent)}.header-footer-grid{grid-template-columns:repeat(3,1fr);gap:4px;display:grid}.header-footer-grid button{min-height:36px;font:inherit;cursor:pointer;background:#fff;border:1px solid #dce4ef;border-radius:4px;font-size:12px}.header-footer-grid button.used{background:#f1f5fb}.header-footer-grid button.active{border-color:var(--accent);background:var(--accent-pale);color:var(--accent);font-weight:600}.header-footer-row{grid-template-columns:repeat(auto-fit,minmax(88px,1fr));gap:6px;display:grid}.header-footer-bates{grid-template-columns:repeat(2,1fr);gap:6px;display:grid}.header-footer-check{cursor:pointer;align-items:center;gap:6px;font-size:13px;display:flex}.header-footer-check input{width:16px;height:16px;accent-color:var(--accent)}.header-footer-actions{flex-wrap:wrap;gap:6px;display:flex}.header-footer-actions .full-button{flex:120px;min-height:36px}.header-footer-apply:not(:disabled){background:var(--accent);color:#fff;border-color:var(--accent)}.header-footer-error{color:#b42318}.header-footer-images{grid-template-columns:1fr;gap:6px;display:grid}.header-footer-images figure{margin:0}.header-footer-images figcaption{color:#6f7c8e;margin-bottom:2px;font-size:11px}.header-footer-images img{background:#fff;border:1px solid #e1e7ef;border-radius:4px;width:100%;height:auto;display:block}.header-footer-results ul,.header-footer-existing ul{flex-direction:column;gap:3px;margin:6px 0 0;padding:0;list-style:none;display:flex}.header-footer-results li,.header-footer-existing li{background:#fff;border:1px solid #e1e7ef;border-radius:4px;align-items:center;gap:8px;padding:5px 8px;font-size:13px;display:flex}.header-footer-existing li span{flex:1;min-width:0}.header-footer-overlap{background:#fff8e6;border:1px solid #f0c36d;border-radius:4px;margin-top:4px;padding:6px 8px;font-size:13px}.header-footer-overlap p{margin:0 0 4px}@media (max-width:1023px){.header-footer-toggle,.header-footer-actions .full-button,.header-footer-panel input:not([type=checkbox]),.header-footer-panel select{min-height:44px;font-size:16px}.header-footer-grid button,.header-footer-presets button,.header-footer-tokens button,.header-footer-existing button,.header-footer-results li button{min-height:44px}.header-footer-check input{width:22px;height:22px}.header-footer-images{grid-template-columns:1fr}}
.boxes{direction:rtl;margin-top:6px}.boxes-toggle{min-height:36px;font:inherit;cursor:pointer;background:#fff;border:1px solid #dce4ef;border-radius:5px;align-items:center;gap:6px;padding:0 10px;display:inline-flex}.boxes-toggle[aria-expanded=true]{border-color:var(--accent);color:var(--accent)}.boxes-panel{background:#fafbfd;border:1px solid #e1e7ef;border-radius:6px;flex-direction:column;gap:8px;max-height:46vh;margin-top:6px;padding:8px;display:flex;overflow:auto}.boxes-panel input:not([type=checkbox]):not([type=color]):not([type=range]),.boxes-panel select{width:100%;min-height:36px;font:inherit;background:#fff;border:1px solid #dce4ef;border-radius:5px;padding:5px 8px}.boxes-panel input[type=color]{background:#fff;border:1px solid #dce4ef;border-radius:5px;width:100%;min-height:36px;padding:2px}.boxes-start{flex-wrap:wrap;gap:6px;display:flex}.boxes-start .full-button{flex:120px;min-height:36px}.boxes-start .full-button.on{background:var(--accent);color:#fff;border-color:var(--accent)}.boxes-row{grid-template-columns:repeat(auto-fit,minmax(80px,1fr));gap:6px;display:grid}.boxes-form{flex-direction:column;gap:8px;display:flex}.boxes-style{flex-wrap:wrap;gap:4px;display:flex}.boxes-style button,.boxes-structure button,.boxes-existing button{min-width:32px;min-height:32px;font:inherit;cursor:pointer;background:#fff;border:1px solid #dce4ef;border-radius:4px;padding:0 9px;font-size:12px}.boxes-style button[aria-pressed=true]{border-color:var(--accent);background:var(--accent-pale);color:var(--accent);font-weight:600}.boxes-check{cursor:pointer;align-items:center;gap:6px;font-size:13px;display:flex}.boxes-check input{width:16px;height:16px;accent-color:var(--accent)}.boxes-columns{flex-wrap:wrap;gap:4px;display:flex}.boxes-column{flex-direction:column;flex:64px;gap:3px;min-width:64px;display:flex}.boxes-structure{flex-wrap:wrap;gap:4px;display:flex}.boxes-actions{flex-wrap:wrap;gap:6px;display:flex}.boxes-actions .full-button{flex:110px;min-height:36px}.boxes-apply:not(:disabled){background:var(--accent);color:#fff;border-color:var(--accent)}.boxes-remove:not(:disabled){color:#b42318;border-color:#f1b5ae}.boxes-error{color:#b42318}.boxes-results{grid-template-columns:1fr;gap:6px;display:grid}.boxes-results figure{margin:0}.boxes-results figcaption{color:#6f7c8e;margin-bottom:2px;font-size:11px}.boxes-results img{background:#fff;border:1px solid #e1e7ef;border-radius:4px;width:100%;height:auto;display:block}.boxes-existing ul{flex-direction:column;gap:3px;margin:6px 0 0;padding:0;list-style:none;display:flex}.boxes-existing li{background:#fff;border:1px solid #e1e7ef;border-radius:4px;align-items:center;gap:8px;padding:5px 8px;font-size:13px;display:flex}.boxes-existing li span{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.boxes-layer{z-index:41;pointer-events:none;position:absolute;inset:0}.boxes-layer.drawing{pointer-events:auto;cursor:crosshair;touch-action:none;background:#2563eb0a}.boxes-outline{box-sizing:border-box;border:1px dashed var(--accent,#2563eb);pointer-events:auto;cursor:pointer;background:#2563eb0d;padding:0;position:absolute}.boxes-outline:hover:not(:disabled){background:#2563eb24}.boxes-live{box-sizing:border-box;pointer-events:none;background:#2563eb24;border:1px dashed #2563eb;position:absolute}.boxes-edit{box-sizing:border-box;pointer-events:none;outline:1px solid var(--accent,#2563eb);position:absolute}.boxes-edit>*{pointer-events:auto}.boxes-text{box-sizing:border-box;resize:none;width:100%;height:100%;margin:0;position:absolute;inset:0;overflow:auto}.boxes-text:focus{outline:0}.boxes-grip{top:-34px;border:1px solid var(--accent,#2563eb);width:30px;height:30px;color:var(--accent,#2563eb);cursor:grab;touch-action:none;background:#fff;border-radius:6px;place-items:center;padding:0;display:grid;position:absolute;inset-inline-start:0}.boxes-handle{border:1px solid var(--accent,#2563eb);touch-action:none;background:#fff;width:12px;height:12px;padding:0;position:absolute}.boxes-handle:after{content:"";position:absolute;inset:-16px}.boxes-handle.nw{cursor:nwse-resize;top:-6px;left:-6px}.boxes-handle.ne{cursor:nesw-resize;top:-6px;right:-6px}.boxes-handle.sw{cursor:nesw-resize;bottom:-6px;left:-6px}.boxes-handle.se{cursor:nwse-resize;bottom:-6px;right:-6px}.boxes-table{position:absolute;inset:0}.boxes-cell{box-sizing:border-box;resize:none;font:inherit;font-size:inherit;background:0 0;margin:0;position:absolute;overflow:hidden}.boxes-cell:focus{outline:2px solid var(--accent,#2563eb);outline-offset:-2px;z-index:1}.boxes-rule{cursor:col-resize;touch-action:none;z-index:2;background:0 0;border:0;width:12px;margin-left:-6px;padding:0;position:absolute;top:0;bottom:0}.boxes-rule:after{content:"";background:var(--accent,#2563eb);opacity:0;width:2px;position:absolute;top:0;bottom:0;left:5px}.boxes-rule:hover:after,.boxes-rule:focus-visible:after{opacity:.8}.boxes-rule.row{cursor:row-resize;width:auto;height:12px;margin:-6px 0 0;inset:auto 0}.boxes-rule.row:after{width:auto;height:2px;inset:5px 0 auto}.boxes-rule:disabled,.boxes-table.selecting .boxes-cell{pointer-events:none}.boxes-pick{box-sizing:border-box;z-index:3;touch-action:none;cursor:cell;background:#2563eb0f;border:1px dashed #2563eb8c;position:absolute}.boxes-pick.on{border:2px solid var(--accent,#2563eb);background:#2563eb38}.boxes-cells{flex-wrap:wrap;gap:4px;display:flex}.boxes-cells button{min-height:32px;font:inherit;cursor:pointer;background:#fff;border:1px solid #dce4ef;border-radius:4px;padding:0 9px;font-size:12px}.boxes-cells button[aria-pressed=true]{border-color:var(--accent);background:var(--accent-pale);color:var(--accent);font-weight:600}.boxes-cells button:disabled{opacity:.5;cursor:default}@media (max-width:1023px){.boxes-toggle,.boxes-start .full-button,.boxes-actions .full-button,.boxes-panel input:not([type=checkbox]):not([type=range]),.boxes-panel select{min-height:44px;font-size:16px}.boxes-style button,.boxes-structure button,.boxes-existing button,.boxes-cells button{min-width:44px;min-height:44px}.boxes-check input{width:22px;height:22px}.boxes-grip{width:44px;height:44px;top:-50px}.boxes-handle{width:16px;height:16px}.boxes-handle.nw{top:-8px;left:-8px}.boxes-handle.ne{top:-8px;right:-8px}.boxes-handle.sw{bottom:-8px;left:-8px}.boxes-handle.se{bottom:-8px;right:-8px}.boxes-rule{width:28px;margin-left:-14px}.boxes-rule:after{left:13px}.boxes-rule.row{width:auto;height:28px;margin:-14px 0 0}.boxes-rule.row:after{top:13px;left:0}.boxes-panel{max-height:40vh}}
.page-size{direction:rtl;margin-top:6px}.ps-toggle{min-height:36px;font:inherit;cursor:pointer;background:#fff;border:1px solid #dce4ef;border-radius:5px;align-items:center;gap:6px;padding:0 10px;display:inline-flex}.ps-toggle[aria-expanded=true]{border-color:var(--accent);color:var(--accent)}.ps-panel{background:#fafbfd;border:1px solid #e1e7ef;border-radius:6px;flex-direction:column;gap:8px;max-height:46vh;margin-top:6px;padding:8px;display:flex;overflow:auto}.ps-panel input:not([type=radio]):not([type=color]),.ps-panel select{width:100%;min-height:36px;font:inherit;background:#fff;border:1px solid #dce4ef;border-radius:5px;padding:5px 8px}.ps-panel input[type=color]{background:#fff;border:1px solid #dce4ef;border-radius:5px;width:100%;min-height:36px;padding:2px}.ps-panel label{color:#44506a;flex-direction:column;gap:3px;font-size:12px;display:flex}.ps-current{color:#44506a;margin:0;font-size:12px}.ps-modes{flex-direction:column;gap:4px;display:flex}.ps-modes label{cursor:pointer;background:#fff;border:1px solid #dce4ef;border-radius:5px;flex-flow:wrap;align-items:baseline;gap:6px;min-height:44px;padding:7px 9px}.ps-modes label.on{border-color:var(--accent);background:var(--accent-pale)}.ps-modes input{width:16px;height:16px;min-height:0;accent-color:var(--accent)}.ps-modes b{color:#1a2433;font-size:13px}.ps-modes span{color:#5a677b;flex-basis:100%;font-size:11px}.ps-row{grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:6px;display:grid}.ps-orientation{gap:4px;display:flex}.ps-orientation button{min-height:36px;font:inherit;cursor:pointer;background:#fff;border:1px solid #dce4ef;border-radius:4px;flex:1}.ps-orientation button[aria-pressed=true]{border-color:var(--accent);background:var(--accent-pale);color:var(--accent);font-weight:600}.ps-anchor{direction:ltr;grid-template-columns:repeat(3,44px);gap:4px;margin-inline:auto;display:grid}.ps-anchor button{cursor:pointer;background:#fff;border:1px solid #c8d3e2;border-radius:4px;width:44px;height:44px;padding:0}.ps-anchor button.on{border-color:var(--accent);background:var(--accent)}.ps-diagram{background:#fff;border:1px dashed #cbd5e4;border-radius:4px;width:100%;max-height:150px}.ps-new{fill:#2563eb14;stroke:#2563eb;stroke-width:2px;stroke-dasharray:6 4;vector-effect:non-scaling-stroke}.ps-old{fill:#0f172a1f;stroke:#44506a;stroke-width:1.5px;vector-effect:non-scaling-stroke}.ps-note{color:#7a4b00;background:#fff7e6;border-radius:5px;margin:0;padding:6px 8px;font-size:12px}.ps-preview{margin:0}.ps-preview img{object-fit:contain;background:#fff;border:1px solid #e1e7ef;border-radius:4px;width:100%;height:auto;max-height:220px;display:block}.ps-preview figcaption{color:#6f7c8e;margin-top:2px;font-size:11px}.ps-error{color:#b42318;margin:0;font-size:12px}.ps-actions{flex-wrap:wrap;gap:6px;display:flex}.ps-actions .full-button{flex:140px;min-height:40px}.ps-apply:not(:disabled){background:var(--accent);color:#fff;border-color:var(--accent)}@media (prefers-reduced-motion:reduce){.page-size *{transition:none!important}}
.redaction{direction:rtl;margin-top:6px}.redaction-toggle{min-height:36px;font:inherit;cursor:pointer;background:#fff;border:1px solid #dce4ef;border-radius:5px;align-items:center;gap:6px;padding:0 10px;display:inline-flex}.redaction-toggle[aria-expanded=true]{color:#111;border-color:#111}.redaction-compact{background:#fff;border:1px solid #111;border-radius:6px;flex-wrap:wrap;align-items:center;gap:8px;padding:6px 8px;font-size:12px;display:flex}.redaction-compact .full-button{min-height:36px}.redaction-panel{background:#fafbfd;border:1px solid #e1e7ef;border-radius:6px;flex-direction:column;gap:6px;max-height:38vh;margin-top:6px;padding:8px;display:flex;overflow:auto}.redaction-warning{color:#7a4b00;background:#fff7e6;border-radius:5px;margin:0;padding:6px 8px;font-size:11px;line-height:1.6}.redaction-row{gap:6px;display:flex}.redaction-row input{min-width:0;min-height:36px;font:inherit;border:1px solid #dce4ef;border-radius:5px;flex:1;padding:5px 8px}.redaction-chips,.redaction-areas,.redaction-preview ul{flex-wrap:wrap;gap:4px;margin:0;padding:0;list-style:none;display:flex}.redaction-chips li,.redaction-areas li{background:#fff;border:1px solid #dce4ef;border-radius:14px;align-items:center;gap:6px;padding:3px 8px;font-size:12px;display:flex}.redaction-chips button,.redaction-areas li>button:last-child{cursor:pointer;background:0 0;border:0;place-items:center;min-width:24px;min-height:24px;display:grid}.redaction-draw.on{color:#fff;background:#111;border-color:#111}.redaction-graphics,.redaction-confirm{cursor:pointer;align-items:flex-start;gap:6px;font-size:11px;line-height:1.5;display:flex}.redaction-preview ul{flex-direction:column;max-height:180px;overflow:auto}.redaction-preview li{background:#fff;border:1px solid #e1e7ef;border-radius:4px;align-items:center;gap:6px;padding:5px 8px;display:flex}.redaction-text{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-size:12px;overflow:hidden}.redaction-apply:not(:disabled){color:#fff;background:#111;border-color:#111}.redaction-error{color:#b42318}.redaction-layer{z-index:40;pointer-events:none;position:absolute;inset:0}.redaction-layer.drawing{pointer-events:auto;cursor:crosshair;touch-action:none;background:#1111110a}.redaction-box{box-sizing:border-box;pointer-events:none;background:#000000b8;border:1px dashed #fff;outline:1px solid #111;position:absolute}.redaction-box.live{background:#df182040;border:1px dashed #df1820;outline:0}.redaction-box button{top:-10px;color:#111;cursor:pointer;pointer-events:auto;background:#fff;border:1px solid #111;border-radius:50%;place-items:center;width:22px;height:22px;padding:0;display:grid;position:absolute;inset-inline-start:-10px}@media (max-width:720px){.redaction-panel{max-height:34vh}.redaction-compact .full-button{min-height:44px}.redaction-toggle,.redaction-row input,.redaction-row .full-button,.redaction-draw,.redaction-apply{min-height:44px;font-size:16px}.redaction-box button{top:-14px;width:32px;height:32px;inset-inline-start:-14px}.redaction-chips button,.redaction-areas li>button:last-child{min-width:36px;min-height:36px}}
.word-ocr-notice{inset-inline:16px;z-index:60;color:#14213d;background:#fff;border:1px solid #d6dbe6;border-radius:14px;gap:8px;max-width:460px;margin-inline:auto;padding:16px 18px;display:grid;position:fixed;bottom:16px;box-shadow:0 14px 40px #14213d38}.word-ocr-notice strong{font-size:15px}.word-ocr-notice p{color:#3a4660;margin:0;font-size:13.5px;line-height:1.7}.word-ocr-close{color:#5b6784;cursor:pointer;background:0 0;border:0;border-radius:10px;place-items:center;width:44px;height:44px;display:grid;position:absolute;inset-block-start:8px;inset-inline-start:8px}.word-ocr-close:hover{background:#eef1f7}.word-ocr-actions{flex-wrap:wrap;gap:8px;margin-top:4px;display:flex}.word-ocr-actions button{color:#14213d;min-height:44px;font:inherit;cursor:pointer;background:#f6f8fc;border:1px solid #c5ccdb;border-radius:10px;align-items:center;gap:6px;padding:0 14px;font-size:13.5px;display:inline-flex}.word-ocr-actions button:disabled{opacity:.55;cursor:not-allowed}.word-ocr-actions .word-ocr-primary{color:#fff;background:#1f4fd8;border-color:#1f4fd8}html[data-theme=dark] .word-ocr-notice{color:#e8ecf7;background:#1b2236;border-color:#33405f}html[data-theme=dark] .word-ocr-notice p{color:#b9c3dc}html[data-theme=dark] .word-ocr-close{color:#9aa7c7}html[data-theme=dark] .word-ocr-close:hover{background:#26304a}html[data-theme=dark] .word-ocr-actions button{color:#e8ecf7;background:#232c45;border-color:#3a4767}
.app-shell .phone-only,.app-shell .document-controls>.phone-only,.pages-drawer-backdrop{display:none}.app-shell .paper:not(.images-tool) .image-hit:not(.active),.app-shell .paper:not(.images-tool) .image-hit:not(.active) .image-selection-target{touch-action:manipulation}@media (max-width:1023px){body:has(.app-shell.has-document:not([hidden])){background:#f6f6f6}.app-shell.has-document{height:100dvh;min-height:0;box-shadow:none;--inspector-width:0px;--phone-dock:56px;border:0;border-radius:0;margin:0}.app-shell.has-document .phone-only,.app-shell.has-document .document-controls>.phone-only{justify-content:center;align-items:center;display:inline-flex}.app-shell.has-document .titlebar{height:48px;min-height:48px;padding:0 4px;padding-top:env(safe-area-inset-top);box-sizing:content-box;background:#fafafa;border-bottom:1px solid #dedee3;flex-wrap:nowrap;align-content:center;align-items:center;gap:2px}.app-shell.has-document .editor-document-tabs{border:0;flex:auto;order:0;align-items:center;width:auto;min-width:0;min-height:44px;overflow:hidden}.app-shell.has-document .editor-document-tab{min-width:0;max-width:none;min-height:44px;box-shadow:none;background:0 0;border:0;gap:6px;padding:0 6px;font-size:13px}.app-shell.has-document .editor-workspace-tab{color:#343a45;border-radius:8px;flex:0 0 44px;justify-content:center;width:44px;min-width:44px;padding:0}.app-shell.has-document .editor-workspace-tab>span,.app-shell.has-document .editor-document-tab.is-active>svg,.app-shell.has-document .editor-document-tab .revision-count,.app-shell.has-document .editor-document-tabs .open-file,.app-shell.has-document .editor-document-tab:not(.editor-workspace-tab):not(.is-active){display:none}.app-shell.has-document .editor-document-tab.is-active{color:#20232a;flex:auto;font-weight:600}.app-shell.has-document .editor-untitled{min-width:0;padding:0 6px;font-size:13px}.app-shell.has-document .editor-history{border:0;flex:none;order:1;gap:0;width:auto;height:44px;padding:0}.app-shell.has-document .editor-history:before{content:none;display:none}.app-shell.has-document .editor-history>span{display:none}.app-shell.has-document .editor-title-actions{background:0 0;flex:none;order:2;gap:2px;height:44px;padding:0}.app-shell.has-document .editor-title-actions .development,.app-shell.has-document .editor-title-actions [aria-label="مساعد PDF Camp"],.app-shell.has-document .editor-title-actions .save-pdf-button>span,.app-shell.has-document .editor-title-actions .download-button>span{display:none}.app-shell.has-document .editor-history .icon-button,.app-shell.has-document .editor-title-actions .icon-button,.app-shell.has-document .editor-title-actions .save-pdf-button,.app-shell.has-document .editor-title-actions .download-button{justify-content:center;align-items:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;display:inline-flex}.app-shell.has-document .editor-title-actions .icon-button,.app-shell.has-document .editor-title-actions .save-pdf-button{background:0 0;border-color:#0000}.app-shell.has-document .editor-title-actions .icon-button[aria-label="مساعد PDF Camp"]{display:none}.app-shell.has-document .statusbar:not([data-connection=offline]),.app-shell.has-document .text-background-status:not([data-text-save-state=failed]),.app-shell.has-document .image-background-status:not([data-image-save-state=failed]),.app-shell.has-document .reading-keyboard-help,.app-shell.has-document .page-jump-field button[type=submit]{clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0;width:1px;min-width:0;height:1px;min-height:0;margin:-1px;padding:0;position:absolute;overflow:hidden}.app-shell.has-document .page-jump input{width:44px;min-width:44px;min-height:44px;font-size:16px}.app-shell.has-document .document-stage{flex:auto;min-width:0;min-height:0;padding-inline-end:0;transition:none}.app-shell.has-document .editor-tool-dock>button>span{color:#4b515b}.app-shell.has-document .editor-tool-dock>button.is-active>span{color:#171b22}.app-shell.has-document .paper-scroll{padding:8px 8px calc(16px + var(--sheet-space,0px))}.app-shell.has-document .page-rail{display:none}.app-shell.has-document .page-rail.drawer-open{z-index:60;width:min(184px,56vw);max-width:none;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom);border:0;background:#fafafa;border-inline-end:1px solid #dcdce1;flex-direction:column;display:flex;position:fixed;top:0;bottom:0;right:0;overflow:hidden;box-shadow:-10px 0 34px #17212b2e}.app-shell.has-document .page-rail.drawer-open .rail-brand{display:none}.app-shell.has-document .page-rail.drawer-open .rail-heading{justify-content:space-between;padding:14px 12px 12px;font-size:12px;display:flex}.app-shell.has-document .page-rail.drawer-open .rail-heading span:last-child{display:inline}.app-shell.has-document .page-rail.drawer-open .thumbnails{overscroll-behavior:contain;flex:1;min-height:0;padding:4px 16px 24px;overflow-y:auto}.app-shell.has-document .page-rail.drawer-open .thumbnail-menu-button{width:44px;height:44px}.app-shell.has-document .page-rail.drawer-open .rail-add-page{min-height:44px}.app-shell.has-document .pages-drawer-backdrop{z-index:59;background:#11182747;border:0;padding:0;display:block;position:fixed;inset:0}.app-shell.has-document .document-stage>.fullscreen-reading-bar{order:-3}.app-shell.has-document .document-stage>.document-controls{order:-2}.app-shell.has-document .document-stage>.editor-utility-bar{order:-1}.app-shell.has-document .document-controls{background:#fafafa;border-bottom:1px solid #e7e7ea;flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:2px;height:auto;min-height:48px;padding:2px 4px;display:flex}.app-shell.has-document .document-controls>*{order:0}.app-shell.has-document .document-controls .control-line{display:none}.app-shell.has-document .document-controls .page-stepper{gap:0;margin:0}.app-shell.has-document .document-controls .page-stepper>button,.app-shell.has-document .document-controls .zoom-control>button,.app-shell.has-document .phone-pages-toggle,.app-shell.has-document .phone-view-toggle{color:#454b56;background:0 0;border:0;border-radius:9px;width:44px;min-width:44px;height:44px;min-height:44px;padding:0}.app-shell.has-document .phone-pages-toggle[aria-expanded=true],.app-shell.has-document .phone-view-toggle[aria-expanded=true]{color:#171b22;background:#e6e8ec}.app-shell.has-document .document-controls .fit-button,.app-shell.has-document .document-controls .zoom-control{display:none}.app-shell.has-document .phone-view-toggle{order:1;margin-inline-start:auto}.app-shell.has-document .view-menu-open .document-controls .control-line{border:0;flex-basis:100%;order:2;height:0;margin:0;display:block}.app-shell.has-document .view-menu-open .document-controls .fit-button{white-space:nowrap;order:3;justify-content:center;align-items:center;min-height:44px;padding:0 10px;font-size:12px;display:inline-flex}.app-shell.has-document .view-menu-open .document-controls .zoom-control{order:3;align-items:center;display:flex}.app-shell.has-document .editor-utility-bar{display:none}.app-shell.has-document .view-menu-open .editor-utility-bar{background:#fafafa;border-bottom:1px solid #e7e7ea;justify-content:center;gap:6px;min-height:48px;padding:2px 4px;display:flex}.app-shell.has-document .view-menu-open .editor-utility-bar .editor-document-name{display:none}.app-shell.has-document .view-menu-open .editor-utility-bar .icon-button{width:44px;height:44px}.app-shell.has-document .properties{z-index:42;background:#fafafafb;border-radius:14px;width:auto;max-height:min(50%,100% - 96px);padding:0 16px 14px;display:none;position:absolute;inset:auto 6px 6px;box-shadow:0 -8px 30px #17212b26}.app-shell.has-document .properties.mobile-open:not(.is-collapsed){display:flex}.app-shell.has-document .document-search{overscroll-behavior:contain;max-height:38dvh;overflow-y:auto}.app-shell.has-document .document-search :is(.find-replace-panel,.redaction-panel){max-height:none;overflow:visible}.app-shell[data-peek] .properties.mobile-open{max-height:none;padding-bottom:6px}.app-shell[data-peek] .properties.mobile-open>:not(.panel-heading){display:none}.app-shell[data-peek] .properties.mobile-open .panel-heading{margin-bottom:0}.app-shell[data-peek] .properties.mobile-open .panel-heading h2:after{content:" · المس هنا لعرض الخيارات";color:#555d69;font-size:11px;font-weight:400}.app-shell[data-peek] .document-search>:not(.search-bar){display:none}.app-shell.has-document .properties .panel-close{width:44px;height:44px}.app-shell.has-document :is(.properties,.document-search) summary{align-items:center;min-height:44px;display:flex}}@media (max-width:720px){.app-shell.has-document .workspace{flex-direction:column}.app-shell.has-document .document-stage{order:1}.app-shell.has-document .editor-tool-dock,.app-shell.has-document .inspector-hidden .editor-tool-dock{width:100%;max-width:none;height:auto;min-height:0;padding:4px 2px calc(4px + env(safe-area-inset-bottom));box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;background:#f7f7f8;border:0;border-top:1px solid #d8dadd;border-radius:0;flex-direction:row;flex:none;order:3;justify-content:space-around;align-items:stretch;gap:0;position:relative;inset:auto;overflow:auto hidden;transform:none}.app-shell.has-document .editor-tool-dock>button{border-radius:10px;flex-direction:column;flex:1 1 0;justify-content:center;align-items:center;gap:2px;width:auto;min-width:44px;max-width:76px;height:48px;min-height:48px;display:flex}.app-shell.has-document .editor-tool-dock>button>span{white-space:nowrap;font-size:10px;line-height:1.2;display:block}.app-shell.has-document .editor-tool-dock>button svg{width:20px;height:20px}.app-shell.has-document .editor-tool-dock .dock-divider,.app-shell.has-document .editor-tool-dock>button[aria-label=حماية\ PDF],.app-shell.has-document .editor-tool-dock>button[aria-label="إضافة توقيع مرئي"],.app-shell.has-document .editor-tool-dock>button.dock-desktop-only{display:none}.app-shell.has-document .properties{bottom:calc(var(--phone-dock) + env(safe-area-inset-bottom) + 4px)}}@media (max-height:500px) and (pointer:coarse) and (max-width:1023px){.app-shell.has-document .workspace{flex-direction:row}.app-shell.has-document .editor-tool-dock,.app-shell.has-document .inspector-hidden .editor-tool-dock{width:52px;max-width:52px;height:auto;padding:4px 4px calc(4px + env(safe-area-inset-bottom));border:0;border-inline-end:1px solid #d8dadd;box-shadow:none;background:#f1f2f4;border-top:0;border-radius:0;flex-direction:column;flex:0 0 52px;order:1;justify-content:flex-start;align-items:center;gap:2px;padding-inline-start:max(4px,env(safe-area-inset-right));position:relative;inset:auto;overflow:hidden auto;transform:none}.app-shell.has-document .editor-tool-dock>button{flex:0 0 44px;width:44px;min-width:44px;max-width:44px;height:44px;min-height:44px}.app-shell.has-document .editor-tool-dock>button>span,.app-shell.has-document .editor-tool-dock .dock-divider,.app-shell.has-document .editor-tool-dock>button[aria-label=حماية\ PDF],.app-shell.has-document .editor-tool-dock>button[aria-label="إضافة توقيع مرئي"],.app-shell.has-document .editor-tool-dock>button.dock-desktop-only{display:none}.app-shell.has-document .document-stage{order:2}.app-shell.has-document .document-controls .zoom-control{align-items:center;display:flex}.app-shell.has-document .properties{width:min(380px,50%);max-height:none;inset:6px auto 6px 6px}.app-shell[data-peek] .properties.mobile-open{width:min(300px,50%);height:auto;bottom:auto}.app-shell.has-document .document-search{max-height:24dvh}}@media (min-width:721px) and (max-width:1023px) and (min-height:501px),(min-width:721px) and (max-width:1023px) and (pointer:fine),(min-width:721px) and (max-width:1023px) and (pointer:none){.app-shell.has-document{--tablet-rail:64px}.app-shell.has-document .workspace{flex-direction:row}.app-shell.has-document .editor-tool-dock,.app-shell.has-document .inspector-hidden .editor-tool-dock{order:1;flex:0 0 var(--tablet-rail);width:var(--tablet-rail);max-width:var(--tablet-rail);height:auto;min-height:0;padding:6px 4px calc(6px + env(safe-area-inset-bottom));border:0;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;background:#f1f2f4;border-inline-end:1px solid #d8dadd;border-radius:0;flex-direction:column;justify-content:flex-start;align-items:center;gap:2px;position:relative;inset:auto;overflow:hidden auto;transform:none}.app-shell.has-document .editor-tool-dock>button{border-radius:10px;flex-direction:column;flex:none;justify-content:center;align-items:center;gap:3px;width:56px;min-width:56px;max-width:56px;height:52px;min-height:52px;padding:0;display:flex}.app-shell.has-document .editor-tool-dock>button>span{white-space:nowrap;font-size:10px;line-height:1.2;display:block}.app-shell.has-document .editor-tool-dock>button svg{width:20px;height:20px}.app-shell.has-document .editor-tool-dock .dock-divider{background:#ced2d8;flex:0 0 1px;width:32px;height:1px;margin:4px 0}.app-shell.has-document .document-stage{order:2}.app-shell.has-document .document-controls .zoom-control{align-items:center;display:flex}.app-shell.has-document .editor-title-actions .save-pdf-button>span,.app-shell.has-document .editor-title-actions .download-button>span{display:inline}.app-shell.has-document .editor-title-actions .save-pdf-button,.app-shell.has-document .editor-title-actions .download-button{gap:6px;width:auto;padding:0 12px}.app-shell.has-document .page-rail.drawer-open{width:min(240px,40vw)}.app-shell.has-document .properties{left:8px;right:calc(var(--tablet-rail) + 8px);max-height:min(42%,100% - 120px);bottom:8px}}
:root{--muted:#5e6470}.app-shell .field-label,.app-shell .input-grid label,.app-shell .crop-check{color:#555d69}:where(.app-shell) .full-button{color:#4a515d}.app-shell .help-text,.app-shell .section-label,.app-shell .selection-hint span,.app-shell .panel-bottom span,.pdfcamp-auth-hint,.pdfcamp-checkout-hint,.pdfcamp-checkout-name,.pdfcamp-checkout footer,.pdfcamp-checkout bdi{color:#5d6470}.app-shell .search-notice,.app-shell .bookmarks-panel small,.app-shell .page-label-caption small,.app-shell .boxes-panel small,.app-shell .find-replace-hit small,.app-shell .header-footer-images figcaption,.spell-bar .spell-note,.spell-bar .spell-status{color:#566273}.app-shell .properties .text-list summary,.app-shell .properties .review-scope button{color:#46546b}.ocr-edit-panel .spell-toggle[aria-pressed=true],.boxes-panel .spell-toggle[aria-pressed=true],.app-shell .header-footer-grid button.active,.pdfcamp-auth-tabs button[aria-selected=true]{color:#b4121a}.rich-panel button[aria-pressed=true]:hover:not(:disabled){color:#fff;background:#6a3fc9}.app-shell :is(button,a[href],input,select,textarea,summary,[tabindex="0"]):focus-visible,.pdfcamp-auth :is(button,a[href],input,select,textarea):focus-visible,.pdfcamp-checkout :is(button,a[href],input,select,textarea):focus-visible,.rich-panel :is(button,input,select,textarea,[contenteditable]):focus-visible,.ocr-edit-panel :is(button,input,select,textarea):focus-visible,.ie-backdrop :is(button,a[href],input,select,textarea):focus-visible{outline-offset:2px;outline:2px solid #1d4ed8}@media (prefers-reduced-motion:reduce){.app-shell :not(.spin),.pdfcamp-auth :not(.spin),.pdfcamp-checkout :not(.spin){scroll-behavior:auto;transition-duration:.01ms;animation-duration:.01ms;animation-iteration-count:1}}.redaction-row{flex-wrap:wrap}.redaction-row input{flex:150px}.redaction-row .full-button{flex:none;width:auto;min-width:96px}.app-shell .document-search{overscroll-behavior:contain;max-height:40dvh;overflow-y:auto}.app-shell .document-search :is(.find-replace-panel,.redaction-panel){max-height:none;overflow:visible}.rich-panel:not(.sheet){max-height:calc(100dvh - 16px);overflow:auto}.find-replace-panel input[type=checkbox],.redaction-panel input[type=checkbox],.header-footer-panel input[type=checkbox],.boxes-panel input[type=checkbox],.search-options input[type=checkbox]{flex:none;min-width:16px;min-height:16px}@media (max-width:1023px),(pointer:coarse){:is(.properties,.document-search,.rich-panel,.ocr-edit-panel,.font-picker-panel,.spell-bar) :is(button,select,summary,input:not([type=checkbox]):not([type=radio]):not([type=range])){min-height:44px}:is(.properties,.document-search) summary{box-sizing:border-box;align-items:center;display:flex}.properties .panel-close{flex:0 0 44px;min-width:44px;min-height:44px}.properties a.full-button{align-items:center;min-height:44px;display:flex}:is(.properties,.document-search,.rich-panel,.ocr-edit-panel) input[type=color]{min-width:44px}:is(.properties,.document-search,.rich-panel,.ocr-edit-panel,.header-footer-panel,.boxes-panel) label:has(>input[type=checkbox],>input[type=radio]){align-items:center;gap:8px;min-height:44px;display:flex}:is(.properties,.document-search,.rich-panel,.ocr-edit-panel,.header-footer-panel,.boxes-panel) :is(input[type=checkbox],input[type=radio]){width:22px;height:22px}.ocr-field input,.ocr-size input,.ocr-field textarea{min-height:44px}.document-search .search-bar button,.document-search button[aria-label=إغلاق\ البحث],.document-analysis :is(button,a),.pdfcamp-auth :is(button,input,a.pdfcamp-auth-forgot),.pdfcamp-checkout :is(button,a){min-width:44px;min-height:44px}.pdfcamp-auth a.pdfcamp-auth-forgot{align-items:center;display:inline-flex}.ie-resolution select{height:auto;min-height:44px}.ocr-edit-panel :is(.ocr-close,.ocr-cancel){min-width:44px;height:auto;min-height:44px}.rich-panel .font-picker-trigger,.font-picker-panel .font-picker-search,.font-picker-panel .font-picker-search input{height:auto;min-height:44px}}@media (max-width:1023px){.rich-panel.sheet{max-height:46dvh}.ocr-edit-panel{max-height:50dvh}body>.font-picker-panel,.font-picker-panel{max-height:36dvh}}@media (max-height:500px) and (pointer:coarse) and (max-width:1023px){.rich-panel,.ocr-edit-panel{border-radius:12px;overflow:auto;width:min(340px,46vw)!important;max-height:none!important;inset:6px 6px 6px auto!important}body>.font-picker-panel,.font-picker-panel{max-height:70dvh}}@media (pointer:coarse) and (min-width:1024px) and (max-width:1366px) and (orientation:landscape){.rich-panel,.ocr-edit-panel{border-radius:12px;overflow:auto;width:min(380px,36vw)!important;max-height:none!important;inset:6px 6px 6px auto!important}}.app-shell .properties{scroll-padding-top:76px}
.selection-layer .image-hit{z-index:auto}.selection-layer .image-hit.active{z-index:auto;background:0 0;border-color:#0000}.selection-layer .image-hit.active:after{content:"";z-index:4;pointer-events:none;background:#2f7de80a;border:1px solid #267cea;position:absolute;inset:-1px}.selection-layer .image-hit.active>:not(.image-selection-target):not(.image-ghost){z-index:6}.selection-layer .text-hit.active{z-index:2}
.editor-history{gap:0;padding:0 14px}.editor-header-brand{align-items:center;min-width:0;max-width:100%;text-decoration:none;display:flex}.editor-header-brand .pdfcamp-brand{width:min(136px,100%)}.editor-header-brand:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:6px}.editor-title-actions .icon-button,.editor-title-actions .icon-only{border-radius:8px;justify-content:center;align-items:center;gap:0;width:36px;min-width:36px;height:36px;min-height:36px;margin:0;padding:0;transition:background-color .15s,color .15s,border-color .15s;display:inline-flex}.app-shell .editor-title-actions .save-pdf-button.icon-only{color:#454b56;background:#f4f4f5;border:1px solid #e2e2e7;min-width:36px}.editor-title-actions .icon-button:hover:not(:disabled),.app-shell .editor-title-actions .save-pdf-button.icon-only:hover:not(:disabled){background:var(--accent-pale);color:var(--accent);border-color:#f0c8ca}.editor-title-actions .download-button.icon-only{border:1px solid var(--accent);color:#fff}.editor-title-actions .download-button.icon-only:hover:not(.disabled):not(:disabled){background:var(--accent-hover);border-color:var(--accent-hover);color:#fff}.editor-title-actions .icon-button:focus-visible,.editor-title-actions .icon-only:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.editor-title-actions .save-pdf-button.icon-only:disabled{opacity:.45;cursor:not-allowed}.rail-document-name{color:#20232a;flex:1;align-items:center;gap:8px;min-width:0;font-size:13px;font-weight:600;line-height:1.3;display:flex}.rail-document-name svg{color:var(--accent);flex-shrink:0}.rail-document-name bdi{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.editor-history-controls{flex-shrink:0;align-items:center;gap:4px;display:flex}.editor-utility-bar .editor-history-controls .history-button,.editor-history-controls .history-button{color:#3d434e;background:0 0;border:1px solid #0000;border-radius:8px;width:36px;min-width:36px;height:36px}.editor-history-controls .history-button svg{transform:scaleX(-1)}.editor-history-controls .history-button:hover:not(:disabled){background:var(--accent-pale);color:var(--accent)}.editor-history-controls .history-button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.editor-history-controls .history-button:disabled{opacity:.38;cursor:not-allowed}.app-shell.has-document .editor-history .editor-history-controls .history-button{width:44px;height:44px}.app-shell.has-document .editor-header-brand.is-compact{flex:none;order:-1;margin-inline:6px 2px}.app-shell.has-document .editor-header-brand.is-compact .pdfcamp-brand{width:104px}.app-shell.has-document .document-controls>.editor-history-controls{order:0;margin-inline-end:4px}.app-shell.has-document .document-controls>.editor-history-controls .history-button{width:44px;min-width:44px;height:44px}.app-shell.has-document .editor-header-brand.is-compact{min-height:44px;padding-inline:4px}
.editor-document-tab-wrap{flex:0 auto;align-items:center;min-width:0;display:inline-flex}.document-tab-close{min-width:36px;min-height:36px;color:var(--muted,#6b7280);cursor:pointer;background:0 0;border:0;border-radius:8px;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.document-tab-close:hover:not(:disabled){color:inherit;background:#7f7f7f2e}.document-tab-close:focus-visible{outline-offset:2px;outline:2px solid #2563eb}.document-tab-close:disabled{opacity:.4;cursor:not-allowed}@media (max-width:1100px),(pointer:coarse){.document-tab-close{min-width:44px;min-height:44px}}.camp-workbench .camp-session-tabs .camp-document-tab-wrap{flex:none;align-items:center;min-width:auto;display:inline-flex}.camp-workbench .camp-session-tabs .camp-document-tab-close{min-width:36px;min-height:36px;color:var(--camp-muted,#6b7280);cursor:pointer;background:0 0;border:0;border-radius:8px;justify-content:center;align-items:center;padding:0;display:inline-flex}.camp-workbench .camp-session-tabs .camp-document-tab-close:hover:not(:disabled){color:inherit;background:#7f7f7f2e}.camp-workbench .camp-session-tabs .camp-document-tab-close:focus-visible{outline-offset:2px;outline:2px solid #2563eb}.camp-workbench .camp-session-tabs .camp-document-tab-close:disabled{opacity:.4;cursor:not-allowed}@media (max-width:1100px),(pointer:coarse){.camp-workbench .camp-session-tabs .camp-document-tab-close{min-width:44px;min-height:44px}}@media (max-width:760px){.app-shell.has-document .editor-document-tab-wrap:not(:has(.editor-document-tab.is-active)){display:none}}.camp-notice{border:1px solid var(--camp-border,#e5e7eb);color:#343943;background:#f6f7f9;border-radius:10px;justify-content:space-between;align-items:center;gap:10px;margin:0 0 12px;padding:10px 14px;font-size:12px;line-height:1.7;display:flex}.camp-notice button{cursor:pointer;min-width:36px;min-height:36px;color:inherit;background:0 0;border:0;border-radius:8px;flex:none;justify-content:center;align-items:center;display:inline-flex}.camp-notice button:focus-visible{outline-offset:2px;outline:2px solid #2563eb}html[data-theme=dark] .camp-notice{color:#e6e8ec;background:#23262d;border-color:#363a44}@media (max-width:760px){.camp-workbench .camp-topbar{flex-wrap:wrap;row-gap:0;height:auto;min-height:49px}.camp-workbench .camp-session-tabs{flex:100%;order:3;max-width:100%}}
html[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--ink:#e9ebf0;--muted:#a9b0bd;--line:#353840;--bg:#131417;--surface:#1c1e23;--accent-pale:#3b1d20;--blue-pale:#1e2a44;--camp-canvas:#15161a;--camp-border:#353840;--camp-muted:#a9b0bd;--camp-ink:#e9ebf0}html[data-theme=dark] body{background:var(--bg);color:var(--ink)}html[data-theme=dark] body:has(.app-shell.has-document:not([hidden])){background:#17181c}html[data-theme=dark] .app-shell,html[data-theme=dark] .app-shell .titlebar,html[data-theme=dark] .editor-title-actions,html[data-theme=dark] .editor-history,html[data-theme=dark] .app-shell .page-rail,html[data-theme=dark] .rail-brand,html[data-theme=dark] .app-shell .workspace,html[data-theme=dark] .statusbar,html[data-theme=dark] .app-shell.has-document .titlebar,html[data-theme=dark] .app-shell.has-document .document-controls{color:var(--ink);border-color:var(--line);background:#1c1e23}html[data-theme=dark] .document-stage,html[data-theme=dark] .app-shell .document-stage{background:#17181c}html[data-theme=dark] .no-document{background:radial-gradient(at 50% 42%,#23262d 0%,#1a1c21 60%,#15161a 100%)}html[data-theme=dark] .document-controls,html[data-theme=dark] .editor-utility-bar{color:var(--muted);background:0 0}html[data-theme=dark] .editor-document-tab{color:var(--muted);border-color:var(--line);background:#202228}html[data-theme=dark] .editor-workspace-tab{color:var(--ink);background:#1c1e23}html[data-theme=dark] .editor-document-tab.is-active{color:#fff;background:#2a2d35}html[data-theme=dark] .editor-workspace-tab:hover:not(:disabled){background:var(--accent-pale);color:#ff8a8f}html[data-theme=dark] .rail-document-name{color:var(--ink)}html[data-theme=dark] .rail-heading{color:var(--muted)}html[data-theme=dark] .properties{color:var(--ink);border-color:var(--line);background:#1c1e23}html[data-theme=dark] .app-shell.has-document .properties{background:#1c1e23fb}html[data-theme=dark] .icon-button{color:#b4bac6}html[data-theme=dark] .editor-title-actions .icon-button,html[data-theme=dark] .app-shell .editor-title-actions .save-pdf-button.icon-only{color:#d4d8e0;background:#262930;border-color:#3a3e47}html[data-theme=dark] .editor-title-actions .icon-button:hover:not(:disabled),html[data-theme=dark] .app-shell .editor-title-actions .save-pdf-button.icon-only:hover:not(:disabled){background:var(--accent-pale);color:#ff8a8f;border-color:#6b2a2e}html[data-theme=dark] .editor-history-controls .history-button{color:#d4d8e0}html[data-theme=dark] .editor-history-controls .history-button:hover:not(:disabled){background:var(--accent-pale);color:#ff8a8f}html[data-theme=dark] .editor-utility-bar .icon-button{color:#b4bac6}html[data-theme=dark] .editor-tool-dock{border-color:var(--line);background:#1f2126}html[data-theme=dark] .thumbnail-open,html[data-theme=dark] .thumbnail-page-number{color:var(--muted)}html[data-theme=dark] .rail-add-page{color:var(--ink);background:#262930;border-color:#3a3e47}html[data-theme=dark] input,html[data-theme=dark] select,html[data-theme=dark] textarea{color:var(--ink);background:#23262d;border-color:#3f434d}html[data-theme=dark] .pdfcamp-brand img{filter:invert()hue-rotate(180deg)}html[data-theme=dark] .scanner-modal,html[data-theme=dark] .signature-modal,html[data-theme=dark] .merge-modal,html[data-theme=dark] .protect-modal,html[data-theme=dark] [role=dialog]:not(.settings-popover){color:var(--ink);border-color:var(--line);background:#1f2126}html[data-theme=dark] .error-banner{color:#ffd6d8;background:#3a1d20;border-color:#6b2a2e}html[data-theme=dark] .camp-dashboard,html[data-theme=dark] .camp-main{color:var(--ink);background:#15161a}html[data-theme=dark] .camp-topbar,html[data-theme=dark] .camp-sidebar,html[data-theme=dark] .camp-dashboard aside{border-color:var(--line);color:var(--ink);background:#1c1e23}html[data-theme=dark] .camp-content{background:#15161a}html[data-theme=dark] .camp-file-card,html[data-theme=dark] .camp-tool-card,html[data-theme=dark] .camp-upload-zone{border-color:var(--line);color:var(--ink);background:#1c1e23}html[data-theme=dark] .pdfcamp-brand img{mix-blend-mode:screen}html[data-theme=dark] .scan-notice.document-analysis{color:#d3e2ff;background:#1d2740;border-color:#33405f}html[data-theme=dark] .scan-notice>span,html[data-theme=dark] .scan-notice strong{color:#d3e2ff}html[data-theme=dark] .scan-notice>button{color:#8fb4ff}html[data-theme=dark] .panel-heading{color:var(--ink);border-color:var(--line);background:#1c1e23f2}html[data-theme=dark] .properties .help-text,html[data-theme=dark] .properties p,html[data-theme=dark] .properties summary,html[data-theme=dark] .properties label,html[data-theme=dark] .properties small{color:#b4bac6}html[data-theme=dark] .properties button{color:#d4d8e0}html[data-theme=dark] .review-panel{border-color:var(--line);color:#b4bac6;background:#202228}html[data-theme=dark] .review-panel input,html[data-theme=dark] .comment-search{color:var(--ink);background:#262930;border-color:#3f434d}html[data-theme=dark] .review-scope button.current{color:#d3e2ff;background:#1d2740;border-color:#33405f}html[data-theme=dark] :is(.rail-add-page,.thumbs-select-toggle,.fit-button,.workspace-home-button,.thumbnail-menu-button){color:#d4d8e0;background:#262930;border-color:#3a3e47}html[data-theme=dark] .editor-tool-dock button{color:#c4cad6}html[data-theme=dark] .editor-tool-dock .is-active{color:#ff8a8f;background:#3a1d20}html[data-theme=dark] .thumbnail-page-number{color:#d4d8e0;background:#262930e6}html[data-theme=dark] .editor-thumbnail.current .thumbnail-page-number{color:#ff8a8f;background:#3a1d20}html[data-theme=dark] :is(.camp-empty,.camp-file-search,.camp-brand,.camp-sort,.camp-view-switch,.camp-library){color:var(--ink);border-color:var(--line);background:#1c1e23}html[data-theme=dark] :is(.camp-nav button,.camp-tool-nav button,.camp-quick-tools button,.camp-workspace-tab,.pdfcamp-account-button,.camp-button-secondary,.camp-upload-icon,.camp-empty-icon){color:var(--ink);background:#262930;border-color:#3a3e47}html[data-theme=dark] .camp-file-search input{color:var(--ink);background:0 0}html[data-theme=dark] :is(.camp-nav button,.camp-workspace-tab,.camp-view-switch button,.rail-add-page,.thumbs-select-toggle,.fit-button,.thumbnail-menu-button){color:#d4d8e0!important;background:#262930!important;border-color:#3a3e47!important}html[data-theme=dark] .camp-beta-tag{color:#b4bac6!important;background:#262930!important}html[data-theme=dark] .editor-tool-dock button.is-active,html[data-theme=dark] .fit-button[aria-pressed=true],html[data-theme=dark] .camp-view-switch button[aria-pressed=true]{color:#ff8a8f!important;background:#3a1d20!important}html[data-theme=dark] .app-shell.has-document .editor-document-tab.is-active,html[data-theme=dark] .app-shell.has-document .editor-document-tab.is-active bdi{color:#fff!important}html[data-theme=dark] .app-shell.has-document .editor-workspace-tab{color:var(--ink)!important}html[data-theme=dark] .editor-tool-dock button,html[data-theme=dark] .editor-tool-dock button *{color:#c4cad6}html[data-theme=dark] .editor-tool-dock button.is-active,html[data-theme=dark] .editor-tool-dock button.is-active *{color:#ff8a8f!important}html[data-theme=dark] .properties :is(h2,h3,h4,summary,.section-label){color:var(--ink)!important}html[data-theme=dark] .properties :is(span,small,p,label,div):not([class*=accent]):not(.is-error){color:#b4bac6}html[data-theme=dark] .app-shell button:not([class]){color:#d4d8e0}html[data-theme=dark] .camp-dashboard{--camp-ink:#e9ebf0;--camp-muted:#b4bac6;--camp-border:#353840;--camp-canvas:#15161a}html[data-theme=dark] .camp-dashboard :is(h1,h2,h3,h4,strong){color:var(--ink)!important}html[data-theme=dark] .camp-dashboard :is(p,small,span,label,li):not(.camp-connection-dot):not([class*=accent]){color:#b4bac6}html[data-theme=dark] .thumbs-select-bar{border-color:var(--line)!important;background:#1c1e23!important}
.app-shell .img-bar{z-index:12;transform:translateX(calc(-50% + var(--shift,0px)));pointer-events:auto;touch-action:manipulation;white-space:nowrap;background:#fff;border:1px solid #d6ddea;border-radius:9px;flex-wrap:wrap;justify-content:center;align-items:center;gap:2px;width:max-content;max-width:min(96vw,560px);padding:4px;display:flex;position:absolute;left:50%;box-shadow:0 6px 22px #15203030}.app-shell .img-bar-above{bottom:calc(100% + 8px)}.app-shell .img-bar-below{top:calc(100% + 8px)}.app-shell .img-bar-inside{top:8px}.app-shell .img-bar-btn{color:#1f2937;min-width:36px;height:36px;font:inherit;cursor:pointer;background:0 0;border:0;border-radius:7px;justify-content:center;align-items:center;gap:5px;padding:0 9px;font-size:12.5px;display:inline-flex}.app-shell .img-bar-btn:hover:not(:disabled){background:#eef3ff}.app-shell .img-bar-btn:focus-visible{outline-offset:1px;outline:2px solid #2563eb}.app-shell .img-bar-btn:disabled{opacity:.45;cursor:not-allowed}.app-shell .img-bar-btn.danger{color:#b42318}.app-shell .img-bar-sep{background:#d6ddea;width:1px;height:22px;margin:0 3px}.app-shell .icl{z-index:11;cursor:default;touch-action:none;-webkit-user-select:none;user-select:none;position:absolute;inset:0}.app-shell .icl-dim{pointer-events:none;background:#0f172a85;position:absolute}.app-shell .icl-box{box-sizing:border-box;pointer-events:none;background-image:linear-gradient(90deg,#0000 33.2%,#ffffff8c 33.3% 33.5%,#0000 33.6% 66.4%,#ffffff8c 66.5% 66.7%,#0000 66.8%),linear-gradient(#0000 33.2%,#ffffff8c 33.3% 33.5%,#0000 33.6% 66.4%,#ffffff8c 66.5% 66.7%,#0000 66.8%);border:2px solid #fff;outline:1px solid #2563eb;position:absolute}.app-shell .icl-h{background:#fff;border:2px solid #2563eb;border-radius:3px;width:13px;height:13px;position:absolute;transform:translate(-50%,-50%);box-shadow:0 1px 4px #0003}.app-shell .icl-h-nw{top:0;left:0}.app-shell .icl-h-n{top:0;left:50%}.app-shell .icl-h-ne{top:0;left:100%}.app-shell .icl-h-e{top:50%;left:100%}.app-shell .icl-h-se{top:100%;left:100%}.app-shell .icl-h-s{top:100%;left:50%}.app-shell .icl-h-sw{top:100%;left:0}.app-shell .icl-h-w{top:50%;left:0}.app-shell .icl-size{color:#fff;pointer-events:none;white-space:nowrap;direction:ltr;background:#0f172acc;border-radius:5px;padding:2px 7px;font-size:11px;position:absolute;bottom:6px;left:50%;transform:translate(-50%)}.app-shell .icl-bar{z-index:13;transform:translateX(calc(-50% + var(--shift,0px)));touch-action:manipulation;background:#fff;border:1px solid #d6ddea;border-radius:10px;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px;width:max-content;max-width:min(96vw,520px);padding:6px;display:flex;position:absolute;top:calc(100% + 8px);left:50%;box-shadow:0 8px 26px #15203036}.app-shell .icl-bar-above{top:auto;bottom:calc(100% + 8px)}.app-shell .icl-bar-inside{top:auto;bottom:8px}.app-shell .icl-chips{flex-wrap:wrap;justify-content:center;gap:3px;display:flex}.app-shell .icl-chip{color:#1f2937;min-width:44px;height:34px;font:inherit;cursor:pointer;background:#fff;border:1px solid #d6ddea;border-radius:7px;padding:0 9px;font-size:12px}.app-shell .icl-chip.is-on{color:#fff;background:#2563eb;border-color:#2563eb}.app-shell .icl-chip:focus-visible,.app-shell .icl-apply:focus-visible,.app-shell .icl-cancel:focus-visible{outline-offset:1px;outline:2px solid #2563eb}.app-shell .icl-apply{color:#fff;height:36px;font:inherit;cursor:pointer;background:#2563eb;border:0;border-radius:8px;align-items:center;gap:5px;padding:0 13px;font-size:13px;display:inline-flex}.app-shell .icl-apply:disabled{opacity:.55;cursor:wait}.app-shell .icl-cancel{color:#44536d;cursor:pointer;background:#fff;border:1px solid #d6ddea;border-radius:8px;justify-content:center;align-items:center;width:36px;height:36px;display:inline-flex}.app-shell .icl-hint{color:#334155;background:#f4f7ff;border-radius:7px;flex-basis:100%;align-items:flex-start;gap:6px;margin:0;padding:5px 8px;font-size:12px;line-height:1.5;display:flex}.app-shell .icl-hint button{color:#64748b;cursor:pointer;background:0 0;border:0;min-width:24px;min-height:24px;margin-inline-start:auto;padding:2px}.app-shell .icl-error{color:#b42318;background:#fff1f0;border-radius:7px;flex-basis:100%;margin:0;padding:5px 8px;font-size:12px}@media (pointer:coarse){.app-shell .img-bar-btn{min-width:44px;height:44px}.app-shell .icl-chip{min-width:48px;height:44px}.app-shell .icl-apply{height:44px}.app-shell .icl-cancel{width:44px;height:44px}.app-shell .icl-h{width:18px;height:18px}.app-shell .icl-hint button{min-width:44px;min-height:44px}}
@keyframes busy-spin{to{transform:rotate(360deg)}}.busy-spin{flex:none;animation:.9s linear infinite busy-spin}@media (prefers-reduced-motion:reduce){.busy-spin{animation:none}}.app-shell button[aria-busy=true]{cursor:progress}.app-shell button[aria-disabled=true]:not(:disabled){opacity:.62;cursor:progress;pointer-events:auto}.app-shell .save-pdf-button{min-width:104px}
.settings-popover{z-index:80;background:var(--surface,#fff);width:min(320px,100vw - 16px);max-height:calc(100dvh - 80px);color:var(--ink,#17212b);border:1px solid var(--line,#e5e5e9);border-radius:12px;gap:12px;padding:14px 16px 12px;display:grid;position:fixed;overflow:auto;box-shadow:0 14px 40px #17212b2b}.settings-popover h2{margin:0;font-size:14px;font-weight:700}.settings-popover fieldset{border:0;gap:8px;min-width:0;margin:0;padding:0;display:grid}.settings-popover legend{color:var(--muted,#5e6470);margin-bottom:6px;padding:0;font-size:11px;font-weight:600}.settings-segments{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;display:grid}.settings-segment,.settings-language{border:1px solid var(--line,#e5e5e9);min-height:40px;color:inherit;cursor:pointer;text-align:center;background:0 0;border-radius:9px;justify-content:center;align-items:center;gap:6px;padding:0 8px;font-size:12px;display:flex;position:relative}.settings-language{justify-content:space-between;padding:0 12px}.settings-segment input,.settings-language input{opacity:0;cursor:pointer;margin:0;position:absolute;inset:0}.settings-segment:hover,.settings-language:hover{background:var(--accent-pale,#fff1f1)}.settings-segment.is-selected,.settings-language.is-selected{border-color:var(--accent,#df1820);color:var(--accent,#df1820);background:var(--accent-pale,#fff1f1);font-weight:600}:is(.settings-segment:has(input:focus-visible),.settings-language:has(input:focus-visible)){outline:2px solid var(--accent,#df1820);outline-offset:2px}.settings-note{color:var(--muted,#5e6470);margin:0;font-size:11px;line-height:1.6}.settings-button.selected{background:var(--accent-pale,#fff1f1);color:var(--accent,#df1820)}@media (max-width:720px){.settings-popover{bottom:calc(8px + env(safe-area-inset-bottom));border-radius:14px;width:auto;max-height:calc(100dvh - 96px);inset-inline:8px!important;top:auto!important}.settings-segment,.settings-language{min-height:44px}}@media (prefers-reduced-motion:reduce){.settings-popover{transition:none}}
.layers-panel{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:8px;margin:14px 0 0;font-size:12px}.layers-heading{width:100%;min-height:40px;color:inherit;font:inherit;cursor:pointer;text-align:start;background:0 0;border:0;border-radius:8px;align-items:center;gap:8px;padding:6px 10px;display:flex}.layers-heading strong{flex:1;font-weight:650}.layers-heading:focus-visible,.layer-eye:focus-visible,.layer-select:focus-visible,.layer-twisty:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}.layers-count{background:var(--bg);min-width:22px;color:var(--muted);text-align:center;border-radius:999px;padding:1px 7px;font-size:11px}.layers-body{border-top:1px solid var(--line);padding:6px 6px 8px}.layers-note{color:var(--muted);margin:2px 4px 6px;font-size:11px;line-height:1.6}.layers-empty{color:var(--muted);margin:8px 4px;font-size:12px}.layers-list,.layer-children{margin:0;padding:0;list-style:none}.layers-list{overscroll-behavior:contain;max-height:min(46vh,340px);overflow-y:auto}.layer-children{border-inline-start:1px solid var(--line);margin-inline-start:12px}.layer-row{content-visibility:auto;contain-intrinsic-size:auto 36px}.layer-line{border-radius:6px;align-items:center;gap:2px;display:flex}.layer-row.is-selected>.layer-line{background:var(--blue-pale);box-shadow:inset 0 0 0 1px var(--blue)}.layer-row.is-hidden .layer-select{opacity:.5}.layer-eye,.layer-twisty{width:34px;height:34px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:6px;flex:none;place-items:center;display:grid}.layer-eye:not(:disabled):hover,.layer-twisty:hover{background:var(--bg);color:var(--ink)}.layer-eye[aria-pressed=true]{color:var(--blue)}.layer-eye:disabled{opacity:.38;cursor:not-allowed}.layer-twisty-space{flex:none;width:22px}.layer-twisty{width:22px}.layer-select{min-width:0;min-height:34px;color:inherit;font:inherit;text-align:start;cursor:pointer;background:0 0;border:0;border-radius:6px;flex:1;align-items:center;gap:6px;padding:2px 6px;display:flex}.layer-select:disabled{cursor:default;color:var(--muted)}.layer-select:not(:disabled):hover{background:var(--bg)}.layer-select svg{color:var(--muted);flex:none}.layer-row.is-selected .layer-select svg{color:var(--blue)}.layer-name{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.layer-detail{color:var(--muted);flex:none;font-size:10.5px}.layer-guess{background:var(--bg);color:var(--muted);border-radius:4px;flex:none;padding:0 5px;font-size:10px}.layer-lock{color:var(--muted);flex:none}@media (pointer:coarse),(max-width:1100px){.layer-eye,.layer-select{min-height:44px}.layer-eye{width:44px;height:44px}.layer-twisty{width:30px;height:44px}}@media (prefers-reduced-motion:no-preference){.layer-line{transition:background-color .12s}}.layer-highlight{pointer-events:none;border:2px dashed var(--blue);background:color-mix(in srgb,var(--blue) 10%,transparent);z-index:3;border-radius:2px;position:absolute}
.app-shell .thumbs-dnd{position:relative}.thumbs-dnd.is-dragging-list{-webkit-user-select:none;user-select:none;cursor:grabbing}.thumbs-dnd.is-dragging-list *{cursor:grabbing!important}.thumbs-select-bar{z-index:6;background:linear-gradient(#f4f4f5 78%,#f4f4f500);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px;margin:0 -4px 8px;padding:4px 4px 8px;display:flex;position:sticky;top:0}.app-shell .thumbs-select-bar button{color:#4b4f5a;min-height:30px;font:600 11px/1 var(--arabic,Arial,sans-serif);cursor:pointer;background:#fff;border:1px solid #dcdce1;border-radius:7px;justify-content:center;align-items:center;gap:5px;padding:0 9px;display:inline-flex}.app-shell .thumbs-select-bar button:disabled{opacity:.5;cursor:default}.app-shell .thumbs-select-toggle.on{color:#ba2931;background:#fff1f1;border-color:#f0cdcf}.thumbs-select-actions{align-items:center;gap:4px;display:inline-flex}.app-shell .thumbs-select-actions button{width:30px;padding:0}.thumbs-select-count{font:600 11px/1 var(--arabic,Arial,sans-serif);color:#ba2931}.thumbs-dnd>.editor-thumbnail{scroll-margin-top:64px}.editor-thumbnail.is-dragging{opacity:.38}.editor-thumbnail.is-selected img{box-shadow:0 0 0 2.5px #2d6cdf,0 4px 14px #2d6cdf26!important}.editor-thumbnail.is-selected .thumbnail-page-number{color:#1f55b8;background:#e8f0fe;border-color:#bcd0f5}.app-shell .thumbs-dnd .thumb-grip{inset-inline-start:6px;z-index:3;color:#7f8490;cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;background:#fffffff2;border:1px solid #dedee2;border-radius:5px;justify-content:center;align-items:center;width:24px;height:24px;margin:0;padding:0;display:flex;position:absolute;bottom:6px;box-shadow:0 2px 6px #00000008}.app-shell .thumbs-dnd .thumb-grip:disabled{opacity:.4;cursor:default}.app-shell .thumbs-dnd .thumb-grip.picked{color:#ba2931;background:#fff1f1;border-color:#e9a5a9;box-shadow:0 0 0 2px #df182026}.app-shell .thumbs-dnd .thumb-grip:focus-visible{outline-offset:2px;outline:2px solid #2d6cdf}@media (hover:hover) and (pointer:fine){.app-shell .thumbs-dnd .editor-thumbnail .thumb-grip{opacity:0;transition:opacity .12s}.app-shell .thumbs-dnd .editor-thumbnail:hover .thumb-grip,.app-shell .thumbs-dnd .editor-thumbnail:focus-within .thumb-grip,.app-shell .thumbs-dnd .editor-thumbnail.is-selected .thumb-grip,.app-shell .thumbs-dnd .thumb-grip.picked{opacity:1}}.app-shell .thumbs-dnd .thumb-check{inset-inline-start:6px;z-index:3;color:#fff;cursor:pointer;background:#00000040;border:2px solid #fff;border-radius:50%;justify-content:center;align-items:center;width:22px;height:22px;font:700 13px/1 Arial,sans-serif;display:none;position:absolute;top:6px;box-shadow:0 1px 4px #00000040}.app-shell .thumbs-dnd .thumb-check.on{background:#2d6cdf}.app-shell .thumbs-dnd .is-select-mode .thumb-check,.app-shell .thumbs-dnd .editor-thumbnail.is-selected .thumb-check{display:flex}@media (hover:hover) and (pointer:fine){.app-shell .thumbs-dnd .editor-thumbnail:hover .thumb-check{display:flex}}.thumb-insertion{z-index:7;background:var(--accent,#df1820);pointer-events:none;border-radius:2px;position:absolute;box-shadow:0 0 0 3px #df182024}.thumb-insertion.noop{box-shadow:none;opacity:.55;background:#9aa0aa}.thumb-ghost{z-index:2147483000;pointer-events:none;opacity:.94;filter:drop-shadow(0 10px 18px #18233340);position:fixed;transform:rotate(2.5deg)}.thumb-ghost img{height:auto;box-shadow:0 0 0 1.5px var(--accent,#df1820);border:3px solid #fff;border-radius:7px;display:block}.thumb-ghost-stack{inset-inline-start:7px;z-index:-1;background:#e9e9ee;border:3px solid #fff;border-radius:7px;position:absolute;top:7px;box-shadow:0 0 0 1px #d0d0d6}.thumb-ghost-count{inset-inline-end:-8px;background:var(--accent,#df1820);color:#fff;border-radius:13px;justify-content:center;align-items:center;min-width:26px;height:26px;padding:0 6px;font:700 13px/1 Arial,sans-serif;display:flex;position:absolute;top:-8px;box-shadow:0 2px 8px #0000004d}.thumb-move-menu{inset-inline-start:4px;z-index:20;background:#fff;border:1px solid #dcdce1;border-radius:10px;gap:2px;min-width:188px;padding:6px;display:grid;position:absolute;bottom:36px;box-shadow:0 12px 32px #1823332e,0 2px 6px #18233314}.app-shell .thumb-move-menu>button{color:#2b2f3a;min-height:36px;font:600 12.5px/1 var(--arabic,Arial,sans-serif);text-align:start;cursor:pointer;background:0 0;border:0;border-radius:7px;align-items:center;gap:8px;padding:0 10px;display:flex}.app-shell .thumb-move-menu>button:hover:not(:disabled),.thumb-move-menu>button:focus-visible{background:#f1f2f6}.app-shell .thumb-move-menu>button:disabled{opacity:.4;cursor:default}.thumb-move-number{border-top:1px solid #ececf0;align-items:center;gap:6px;margin-top:4px;padding:6px 4px 2px;display:flex}.thumb-move-number label{font:600 11.5px/1.2 var(--arabic,Arial,sans-serif);color:#4b4f5a;flex:1;align-items:center;gap:6px;display:flex}.thumb-move-number input{text-align:center;direction:ltr;border:1px solid #cfd2da;border-radius:6px;width:54px;min-height:32px;padding:0 6px;font:600 13px/1 Arial,sans-serif}.app-shell .thumb-move-number button{background:var(--accent,#df1820);color:#fff;min-height:32px;font:700 12px/1 var(--arabic,Arial,sans-serif);cursor:pointer;border:0;border-radius:6px;padding:0 12px}.app-shell .thumb-move-number button:disabled{opacity:.45;cursor:default}.thumbs-live{clip:rect(0 0 0 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@media (pointer:coarse){.app-shell .thumbs-dnd .thumb-grip{border-radius:9px;width:44px;height:44px}.app-shell .thumbs-dnd .thumb-grip svg{width:22px;height:22px}.app-shell .thumbs-dnd .thumb-check{width:30px;height:30px;font-size:16px}.thumb-move-menu{min-width:220px}.app-shell .thumb-move-menu>button{min-height:44px;font-size:14px}.app-shell .thumb-move-number input,.app-shell .thumb-move-number button{min-height:44px}.app-shell .thumbs-select-bar button{min-width:44px;min-height:44px}}@media (prefers-reduced-motion:reduce){.editor-thumbnail .thumb-grip{transition:none}.thumb-ghost{transform:none}}
