/* Full viewport, including desktop: photos are never constrained to a bottom sheet. */
body.image-workflow-open{overflow:hidden!important;overscroll-behavior:none}.image-workflow{position:fixed;inset:0;z-index:1000;background:#111016;color:#fff;display:flex;flex-direction:column;direction:rtl;width:100%;height:100dvh;height:100%;font-family:IRANSans,Tahoma,Arial;isolation:isolate;overscroll-behavior:contain}.image-top{display:flex;align-items:center;gap:12px;min-height:68px;padding:10px 16px;padding-top:max(10px,env(safe-area-inset-top));flex-shrink:0;background:#19161f;border-bottom:1px solid #ffffff0e}.image-title{font-size:13px;font-weight:500;white-space:nowrap}.image-leading{display:flex}.image-tools{margin-right:auto}.image-workflow button{font:inherit;cursor:pointer;touch-action:manipulation}.image-back,.image-cancel{border:0;background:#ffffff0d;color:#fff;border-radius:50%;height:42px;width:42px;display:grid;place-items:center;font-size:22px!important}.image-back{transform:rotate(0deg)}.image-cancel{font-size:20px!important}.image-detect{border:1px solid #c994fa66;border-radius:12px;padding:11px 14px;background:#3e265a;color:#ead3ff;font-size:12px!important;white-space:nowrap}.image-viewport{position:relative;flex:1;min-height:0;overflow:hidden;touch-action:none;background:#111016;user-select:none;display:flex;align-items:center;justify-content:center}.image-zoom{width:100%;height:100%;object-fit:contain;display:block;transform-origin:center;will-change:transform;max-width:none;max-height:none;pointer-events:none;-webkit-user-drag:none}.image-status{min-height:32px;flex-shrink:0;text-align:center;font-size:11px;color:#b6a9c5;padding:8px 16px;line-height:1.7;background:#19161f}.image-footer{display:flex;flex-direction:column;flex-shrink:0;align-items:center;gap:12px;padding:8px 16px max(16px,env(safe-area-inset-bottom));background:#19161f}.image-send{display:flex;align-items:center;justify-content:center;gap:14px;border:0;border-radius:15px;padding:15px 30px;background:#aa75db;color:#180c24;min-width:180px;font-size:14px!important;font-weight:bold!important}.image-workflow button:disabled{opacity:.45}.image-filter-strip{display:flex;direction:rtl;gap:10px;overflow-x:auto;width:100%;max-width:800px;padding:5px 2px 8px;scrollbar-width:thin;scrollbar-color:#68447e transparent}.image-filter{border:2px solid transparent;border-radius:13px;flex:0 0 76px;overflow:hidden;padding:4px;background:#29232f;color:#cfc3dc;display:flex;flex-direction:column;align-items:center;gap:7px}.image-filter canvas{width:64px;height:76px;border-radius:8px;object-fit:cover;display:block}.image-filter span{font-size:10px;white-space:nowrap;padding-bottom:3px}.image-filter[aria-pressed="true"]{border-color:#bd8ce8;color:#fff;background:#503362}.document-crop{width:100%;height:100%;touch-action:none;display:block}.image-picker{display:block;margin:8px 0 16px}.image-picker input[type=file]{display:none!important}.image-picker-actions{display:flex;gap:8px}.image-picker-actions button{flex:1;background:#eee6f6;color:#65328e;border:1px solid #dfcde9;border-radius:12px;min-height:48px;padding:10px;font:inherit}.image-selection{display:flex;gap:10px;align-items:center;margin-top:10px;color:#8b799b;font-size:11px;overflow-wrap:anywhere}.image-selection img{width:48px;height:48px;object-fit:cover;border-radius:9px;cursor:zoom-in}.image-remove{margin-right:auto;color:#9a6389;background:none;padding:8px;font-size:11px!important}.image-message button,.group-info img,.group-photo-picker img,.chat-avatar img,.draft-file img{cursor:zoom-in}@media(max-width:360px){.image-top{gap:6px;padding-left:8px;padding-right:8px}.image-title{font-size:11px}.image-detect{padding:10px 8px;font-size:11px!important}.image-cancel,.image-back{width:38px;height:38px}.image-filter{flex-basis:68px}.image-filter canvas{width:56px;height:66px}}@media(max-height:470px){.image-top{min-height:48px;padding-top:5px;padding-bottom:5px}.image-status{min-height:22px;padding:3px}.image-footer{gap:4px;padding:4px}.image-filter canvas{height:40px;width:50px}.image-filter span{font-size:9px}.image-filter{padding:2px;gap:3px}.image-send{padding:9px 24px;min-height:40px}}
